OSDN Git Service

Always use the correct pixel store size
authorRomain Guy <romainguy@google.com>
Tue, 16 Oct 2012 18:25:06 +0000 (11:25 -0700)
committerRomain Guy <romainguy@google.com>
Tue, 16 Oct 2012 18:25:06 +0000 (11:25 -0700)
commitd43b22da291fd08017fac627561091a633c85807
treef03a0488697614a39366f81f22878339e1096f16
parent4682cf02b42f75876f14f512e874c3e798b09c9c
Always use the correct pixel store size
Bug #7357394

When a bitmap is reused it may change configuration which can lead
to a different pixel store alignment. Our current texture cache
implementation assumes this never happens and keeps the old alignment
which can lead to distorted texture (if the bitmap goes from
ARGB8888 to RGB565 for instance.)

Change-Id: Ic57acf2403411ae4d0924e92f221298350612617
libs/hwui/TextureCache.cpp