diff options
| author | 2010-10-13 18:19:48 -0700 | |
|---|---|---|
| committer | 2010-10-13 18:19:48 -0700 | |
| commit | 909cbaf8f92d69f507bbdba9e5aa960d1e6c7a1f (patch) | |
| tree | e0b26f1015f875c9490bb1cfeceb76d3c40c1fd0 /libs/hwui/OpenGLRenderer.cpp | |
| parent | 5d794412e3e429e47404395badcd11b0b8639e8b (diff) | |
Don't draw TextView's alpha layers when not needed.
Change-Id: Iedf42cbc62d727f18500c78fcccf2d081a761fec
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index d81760d96c83..ac3bc9c3ee46 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -455,6 +455,7 @@ bool OpenGLRenderer::createLayer(sp<Snapshot> snapshot, float left, float top,  #endif          // Clear the FBO +        bounds.snapToPixelBoundaries();          glScissor(0.0f, 0.0f, bounds.getWidth(), bounds.getHeight());          glClearColor(0.0f, 0.0f, 0.0f, 0.0f);          glClear(GL_COLOR_BUFFER_BIT); |