diff options
author | 2011-01-26 22:41:43 -0800 | |
---|---|---|
committer | 2011-01-26 22:45:16 -0800 | |
commit | 4f09f5417b5c14fd31336dacfff86972e7885a03 (patch) | |
tree | 3f086cfaccb190108c414f598e996e5769c1d17b /libs/hwui/OpenGLRenderer.cpp | |
parent | 3b1fd35c6876f7eb1d15db3095c3e57969783302 (diff) |
Don't draw the same triangles several times.
Bug #3388197
Change-Id: Ief1dfd9447f144e9992340a173d2893e5e049129
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 81c340712ff5..29603955b30a 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1613,10 +1613,12 @@ void OpenGLRenderer::drawLayer(Layer* layer, float x, float y, SkPaint* paint) { setupDrawColorFilter(); setupDrawBlending(layer->blend || layer->alpha < 255, layer->mode, false); setupDrawProgram(); - setupDrawDirtyRegionsDisabled(); setupDrawPureColorUniforms(); setupDrawColorFilterUniforms(); setupDrawTexture(layer->texture); + // TODO: The current layer, if any, will be dirtied with the bounding box + // of the layer we are drawing. Since the layer we are drawing has + // a mesh, we know the dirty region, we should use it instead setupDrawModelViewTranslate(rect.left, rect.top, rect.right, rect.bottom); setupDrawMesh(&layer->mesh[0].position[0], &layer->mesh[0].texture[0]); |