diff options
author | Romain Guy <romainguy@google.com> | 2011-03-01 14:53:48 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-01 14:53:48 -0800 |
commit | e6c524022deb665439a442ab8b66f2917ca62ca2 (patch) | |
tree | cec4e4c0ac30a8684cf8d8fb3d711e3864de8af4 /libs | |
parent | 5a6f9faf5d94792a61557937f11e8b6b289ea03a (diff) | |
parent | d643bb56fdf21973ea75984f0816b7dc024698df (diff) | |
download | frameworks_base-e6c524022deb665439a442ab8b66f2917ca62ca2.zip frameworks_base-e6c524022deb665439a442ab8b66f2917ca62ca2.tar.gz frameworks_base-e6c524022deb665439a442ab8b66f2917ca62ca2.tar.bz2 |
Merge "Correctly mark layers dirty when drawing WebView."
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 48b3d6e..361815a 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -213,6 +213,17 @@ bool OpenGLRenderer::callDrawGLFunction(Functor *functor) { if (mDirtyClip) { setScissorFromClip(); } + +#if RENDER_LAYERS_AS_REGIONS + // Since we don't know what the functor will draw, let's dirty + // tne entire clip region + if (hasLayer()) { + Rect clip(*mSnapshot->clipRect); + clip.snapToPixelBoundaries(); + dirtyLayerUnchecked(clip, getRegion()); + } +#endif + status_t result = (*functor)(); resume(); return (result == 0) ? false : true; |