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

Unified Diff: Source/platform/graphics/GraphicsLayer.cpp

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clean up. Created 5 years, 3 months 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
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 6c27628d2cea91ee20f22808ca0b84abb2ca9c98..e15babb6513ab10daf510749a693ff545fe281c1 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -460,6 +460,14 @@ void GraphicsLayer::resetTrackedPaintInvalidations()
paintInvalidationTrackingMap().remove(this);
}
+bool GraphicsLayer::hasTrackedPaintInvalidations() const
+{
+ PaintInvalidationTrackingMap::iterator it = paintInvalidationTrackingMap().find(this);
+ if (it != paintInvalidationTrackingMap().end())
+ return !it->value.invalidationRects.isEmpty();
+ return false;
+}
+
void GraphicsLayer::trackPaintInvalidationRect(const FloatRect& rect)
{
if (rect.isEmpty())

Powered by Google App Engine
This is Rietveld 408576698