diff options
| author | 2011-01-25 22:54:06 -0800 | |
|---|---|---|
| committer | 2011-01-25 22:54:06 -0800 | |
| commit | b6110a1ef41337a5f3042c7e08b63274cee4faf6 (patch) | |
| tree | 06d317af495f92ff962e722e09fc513f2f381ff9 /libs/hwui/OpenGLRenderer.cpp | |
| parent | 4991a00b28ea17941681396ec5dfc62a53408158 (diff) | |
| parent | f90f8171e6acb56f9f87093c01fd586f2140697a (diff) | |
Merge "Make sure the opaque bitmap is opaque. GL doesn't like being lied to. Bug #3382992" into honeycomb
Diffstat (limited to 'libs/hwui/OpenGLRenderer.cpp')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 9f491b3d31c1..c378f46117bb 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -218,6 +218,9 @@ void OpenGLRenderer::releaseContext() { bool OpenGLRenderer::callDrawGLFunction(Functor *functor) { interrupt(); + if (mDirtyClip) { + setScissorFromClip(); + } status_t result = (*functor)(); resume(); return (result == 0) ? false : true; @@ -1451,13 +1454,7 @@ void OpenGLRenderer::drawRect(float left, float top, float right, float bottom, mode = getXfermode(p->getXfermode()); } - // Skia draws using the color's alpha channel if < 255 - // Otherwise, it uses the paint's alpha int color = p->getColor(); - if (((color >> 24) & 0xff) == 255) { - color |= p->getAlpha() << 24; - } - drawColorRect(left, top, right, bottom, color, mode); } |