diff options
| author | 2014-07-02 19:36:56 +0800 | |
|---|---|---|
| committer | 2014-07-17 21:50:01 +0000 | |
| commit | 33f5a59ac3e304970920dda824958870f85f76ef (patch) | |
| tree | 43b786780f5c967498615887d8dac8cbdc18bb38 /libs/hwui/OpenGLRenderer.h | |
| parent | 889fc94ffa70633e510e812b9da86723f4eee384 (diff) | |
[HWUI]: fix residual line on FrameBuffer
Symptom: If app applies animation to enlarge a bitmap, there will be an residual
line on the screen
Root Cause: On platform which has Tile Rendering implementation (ex. Qualcomm
CPU), startTiling() call will restrict the framebuffer region which
GPU can affect. So the expansion of clear region by 1 will not take
effect if startTiling region is not expanded.
Solution: Expand the startTiling region by 1, too.
Reproduce steps: Apply animation to enlarge (and then shrink) a bitmap icon.
Cherry-pick of 20adb6ce4d52b15472e7e5ee953e06cc349a827c from AOSP
Change-Id: I163b898b87b74d221dc4210b7fa657aa93c82c19
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rwxr-xr-x[-rw-r--r--] | libs/hwui/OpenGLRenderer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index e7328be969ef..4e7844bb0bdc 100644..100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -491,14 +491,14 @@ private: * This method needs to be invoked every time getTargetFbo() is * bound again. */ - void startTilingCurrentClip(bool opaque = false); + void startTilingCurrentClip(bool opaque = false, bool expand = false); /** * Tells the GPU what part of the screen is about to be redrawn. * This method needs to be invoked every time getTargetFbo() is * bound again. */ - void startTiling(const Rect& clip, int windowHeight, bool opaque = false); + void startTiling(const Rect& clip, int windowHeight, bool opaque = false, bool expand = false); /** * Tells the GPU that we are done drawing the frame or that we |