diff options
author | Chris Craik <ccraik@google.com> | 2012-04-11 11:39:55 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2012-04-12 09:54:16 -0700 |
commit | 5f0350c3ee327062ec6e22a3935c3bd4534cd15d (patch) | |
tree | ccb442755c849654d2692e2eda359e8a060d722e /Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h | |
parent | 5d119b85382480f33eefb397ef6b34a4331671b9 (diff) | |
download | external_webkit-5f0350c3ee327062ec6e22a3935c3bd4534cd15d.zip external_webkit-5f0350c3ee327062ec6e22a3935c3bd4534cd15d.tar.gz external_webkit-5f0350c3ee327062ec6e22a3935c3bd4534cd15d.tar.bz2 |
Skip drawing the background (glClear) if the tiles cover it.
bug:5631590
Change-Id: Ic7dc0dac0d7f98fb94eb2b111b3e59a0a7010caf
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h index 6450c9c..7dfe140 100644 --- a/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h +++ b/Source/WebCore/platform/graphics/android/rendering/SurfaceCollection.h @@ -50,9 +50,10 @@ public: // Tiled painting methods (executed on groups) void prepareGL(const SkRect& visibleRect); bool drawGL(const SkRect& visibleRect); - Color getBackground(); + Color getBackgroundColor(); void swapTiles(); bool isReady(); + bool isMissingBackgroundContent(); void computeTexturesAmount(TexturesResult* result); // Recursive tree methods (animations, invals, etc) |