Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(916)

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.h

Issue 2481363007: Update First Paint to include paint of non-default document background color (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index 59269deba953ac376ad91d240effa81c7b963865..8aaebc3ed5f38df9e07115a0e92dd14f9956d3b3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -165,6 +165,13 @@ class PLATFORM_EXPORT PaintController {
bool imagePainted() const { return m_imagePainted; }
void setImagePainted() { m_imagePainted = true; }
+ bool nonDefaultBackgroundColorPainted() const {
+ return m_nonDefaultBackgroundColorPainted;
+ }
+ void setNonDefaultBackgroundColorPainted() {
+ m_nonDefaultBackgroundColorPainted = true;
+ }
+
// Returns displayItemList added using createAndAppend() since beginning or
// the last commitNewDisplayItems(). Use with care.
DisplayItemList& newDisplayItemList() { return m_newDisplayItemList; }
@@ -195,6 +202,7 @@ class PLATFORM_EXPORT PaintController {
m_subsequenceCachingDisabled(false),
m_textPainted(false),
m_imagePainted(false),
+ m_nonDefaultBackgroundColorPainted(false),
m_skippingCacheCount(0),
m_numCachedNewItems(0),
m_currentCachedSubsequenceBeginIndexInNewList(kNotFound)
@@ -298,6 +306,7 @@ class PLATFORM_EXPORT PaintController {
// false.
bool m_textPainted;
bool m_imagePainted;
+ bool m_nonDefaultBackgroundColorPainted;
int m_skippingCacheCount;
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698