OSDN Git Service

Don't increment the paint's generation ID when drawing bitmaps
authorRomain Guy <romainguy@google.com>
Wed, 27 Feb 2013 19:53:12 +0000 (11:53 -0800)
committerRomain Guy <romainguy@google.com>
Wed, 27 Feb 2013 19:53:12 +0000 (11:53 -0800)
commit758724fd09a1599f2c55130f81953cfa6c17c300
treeca84f352115851317bf012534a69d748def6092e
parentc0e55bd3cfe1d7be2276e4f528fee2231763a5c1
Don't increment the paint's generation ID when drawing bitmaps

When the renderer draws a bitmap as part of a display list with an
alpha < 1.0f, the paint is temporarily modified to alter the opacity
of the bitmap. This has the side effect of increasing the paint's
generation ID counter which can break paint caching.

Change-Id: I5055d059ad1639829fa50af3d946e296c4dab877
libs/hwui/DisplayListOp.h
libs/hwui/OpenGLRenderer.cpp
libs/hwui/OpenGLRenderer.h