summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-05-25 15:48:48 -0700
committerChris Craik <ccraik@google.com>2012-05-25 16:55:15 -0700
commitcfbfb3bbc3ed10f3e061b52c70e5c7935e96a45a (patch)
tree6f2b67c1fc3c4c4915cc198b6a347d056bcc6425 /Source/WebCore/platform/graphics/android/rendering/Surface.cpp
parent385ef015bf9d84a940d65586b9f70292f6b6fb63 (diff)
downloadexternal_webkit-cfbfb3bbc3ed10f3e061b52c70e5c7935e96a45a.zip
external_webkit-cfbfb3bbc3ed10f3e061b52c70e5c7935e96a45a.tar.gz
external_webkit-cfbfb3bbc3ed10f3e061b52c70e5c7935e96a45a.tar.bz2
Reduce UI-thread computation
If the current clip covers the entire view, we don't have to calculate framework invals from swapping layers - we already draw them immediately. bug:6530473 Change-Id: I4b639e06781371e37c246f3220b79f28e7d95649
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/Surface.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/Surface.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/Surface.cpp b/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
index 94b7b6e..106b045 100644
--- a/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/Surface.cpp
@@ -264,12 +264,12 @@ bool Surface::drawGL(bool layerTilesDisabled)
return askRedraw;
}
-void Surface::swapTiles()
+void Surface::swapTiles(bool calculateFrameworkInvals)
{
if (!m_surfaceBacking)
return;
- if (m_surfaceBacking->swapTiles())
+ if (m_surfaceBacking->swapTiles() && calculateFrameworkInvals)
addFrameworkInvals();
}