Use the new GLVertexBuffer API

Review Request #110373 - Created May 9, 2013 and submitted

Information
Fredrik Höglund
kde-workspace
master
Reviewers
kwin
commit 88083134a8b65e3bedbfe83e082f1ad33d452ace
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Tue Sep 18 22:24:58 2012 +0200

    kwin: Use the new map() interface in renderQuads()
    
    This saves the cost of allocating two temporary arrays, copying
    the vertex data into them, and then copying the data from the
    arrays into the buffer object.
    
    This also makes renderQuads() handle coordinates for rectangular
    textures correctly.

commit 4aed05a76364ed96d430d4cb11ce0ece95a68fc1
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Tue Sep 18 22:24:01 2012 +0200

    kwin: Use the new map() interface in makeDecorationArrays()
    
    This saves the cost of allocating two temporary arrays, copying the
    vertex data into them, and then copying the data from the arrays into
    the buffer object.

commit 459975337f369971728476cb6fa57e4544444ff1
Author: Fredrik Höglund <fredrik@kde.org>
Date:   Mon Sep 17 23:35:52 2012 +0200

    kwin: Add WindowQuadList::makeInterleavedArrays()
    
    Unlike makeArrays() this function writes into an already allocated array,
    and takes a matrix that transforms the texture coordinates. This allows
    this function to handle coordinates for rectangular textures correctly.

  
Fredrik Höglund
Review request changed

Status: Closed (submitted)

Loading...