OSDN Git Service

[HWUI]: fix residual line on FrameBuffer
authorhenry.uh_chen <henry.uh_chen@htc.com>
Wed, 2 Jul 2014 11:36:56 +0000 (19:36 +0800)
committerChris Craik <ccraik@google.com>
Thu, 17 Jul 2014 21:50:01 +0000 (21:50 +0000)
commit33f5a59ac3e304970920dda824958870f85f76ef
tree43b786780f5c967498615887d8dac8cbdc18bb38
parent889fc94ffa70633e510e812b9da86723f4eee384
[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
libs/hwui/OpenGLRenderer.cpp [changed mode: 0644->0755]
libs/hwui/OpenGLRenderer.h [changed mode: 0644->0755]