summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/BaseTile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r--WebCore/platform/graphics/android/BaseTile.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp
index c67e2b8..391e87b 100644
--- a/WebCore/platform/graphics/android/BaseTile.cpp
+++ b/WebCore/platform/graphics/android/BaseTile.cpp
@@ -427,9 +427,15 @@ int BaseTile::paintPartialBitmap(SkIRect r, float ptx, float pty,
nCanvas->translate(tx, ty);
int pictureCount = tiledPage->paintBaseLayerContent(nCanvas);
picture.endRecording();
+
+ bool visualIndicator = TilesManager::instance()->getShowVisualIndicator();
+ if (visualIndicator)
+ canvas.save();
picture.draw(&canvas);
+ if (visualIndicator)
+ canvas.restore();
- if (TilesManager::instance()->getShowVisualIndicator()) {
+ if (visualIndicator) {
int color = 20 + pictureCount % 100;
canvas.drawARGB(color, 0, 255, 0);