diff options
author | Nicolas Roard <nicolasroard@google.com> | 2011-04-04 18:40:11 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2011-04-07 17:19:47 -0700 |
commit | be61abb47b98988ca94bd839a1e17c3267365dc9 (patch) | |
tree | 882e56d46a248c276fe2d8a672738696f68f3279 /WebCore/platform/graphics/android/BaseTile.cpp | |
parent | e4cbbfc01b360475415d07bc3a4276fc46e828b9 (diff) | |
download | external_webkit-be61abb47b98988ca94bd839a1e17c3267365dc9.zip external_webkit-be61abb47b98988ca94bd839a1e17c3267365dc9.tar.gz external_webkit-be61abb47b98988ca94bd839a1e17c3267365dc9.tar.bz2 |
Fix for bug:4183801
The computation for the invalidated / clipping rects were wrong,
sometimes causing the linked bug when layers had a transparent
background (they were not obeying the clipping rect passed by
the framework).
java counterpart CL:
https://android-git.corp.google.com/g/#change,105503
Change-Id: I60769e7cbf1a3a939724c57b3d3ce63a6f87aa87
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 690bc6a..5968bd9 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -263,6 +263,8 @@ void BaseTile::paintBitmap() SkRegion dirtyArea = *m_currentDirtyArea; m_painting = true; float scale = m_scale; + const int x = m_x; + const int y = m_y; m_atomicSync.unlock(); if (!dirty || !texture) { @@ -270,8 +272,6 @@ void BaseTile::paintBitmap() return; } - const int x = m_x; - const int y = m_y; TiledPage* tiledPage = m_page; texture->producerAcquireContext(); |