From 1deed5ff76dad5d0783c0e07639338f1d6b08a67 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Fri, 8 Apr 2011 14:17:49 -0700 Subject: Fix out-of-place content when zooming out. bug:4271501 Change-Id: I9836f2775b0acf89b09b6edf2111cd44f0d1daa8 --- WebCore/platform/graphics/android/BaseTile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'WebCore/platform/graphics/android/BaseTile.cpp') diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index 5968bd9..d58c549 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -172,9 +172,9 @@ void BaseTile::setUsedLevel(int usedLevel) m_texture->setUsedLevel(usedLevel); } -void BaseTile::draw(float transparency, SkRect& rect) +void BaseTile::draw(float transparency, SkRect& rect, float scale) { - if (m_x < 0 || m_y < 0) + if (m_x < 0 || m_y < 0 || m_scale != scale) return; // No need to mutex protect reads of m_texture as it is only written to by -- cgit v1.1