summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/GLWebViewState.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-02-18 14:04:07 -0500
committerDerek Sollenberger <djsollen@google.com>2011-02-18 14:35:13 -0500
commitd7c6f523638ace106f79b7ffb2a03fd8de3d0b55 (patch)
treeb16212dcf2c86870ccc890c16c7e55ed25c42085 /WebCore/platform/graphics/android/GLWebViewState.h
parent944d70ebdb065af6f4c2438f418c7defb18a3aee (diff)
downloadexternal_webkit-d7c6f523638ace106f79b7ffb2a03fd8de3d0b55.zip
external_webkit-d7c6f523638ace106f79b7ffb2a03fd8de3d0b55.tar.gz
external_webkit-d7c6f523638ace106f79b7ffb2a03fd8de3d0b55.tar.bz2
Ensure non-ready tiles are painted with the page background color.
bug: 3465059 Change-Id: Ia6e5ec7e9f68d641f5bf0df34c04c5c9958a4046
Diffstat (limited to 'WebCore/platform/graphics/android/GLWebViewState.h')
-rw-r--r--WebCore/platform/graphics/android/GLWebViewState.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/GLWebViewState.h b/WebCore/platform/graphics/android/GLWebViewState.h
index d28c16a..32157b1 100644
--- a/WebCore/platform/graphics/android/GLWebViewState.h
+++ b/WebCore/platform/graphics/android/GLWebViewState.h
@@ -208,6 +208,9 @@ public:
bool drawGL(IntRect& rect, SkRect& viewport,
float scale, SkColor color = SK_ColorWHITE);
+ void setBackgroundColor(SkColor color) { m_backgroundColor = color; }
+ SkColor getBackgroundColor() { return m_backgroundColor; }
+
private:
void inval(const IntRect& rect); // caller must hold m_baseLayerLock
@@ -247,6 +250,8 @@ private:
bool m_baseLayerUpdate;
IntRect m_invalidateRect;
+
+ SkColor m_backgroundColor;
};
} // namespace WebCore