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

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

Issue 1324763002: Paint invalidation tests for slimming paint v2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Yet another unrelated file mixed from another branch :( Created 5 years, 4 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
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/graphics/paint/DisplayItemList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index 197161ebf986f2eb429003abd7f23cc3d1261851..6c27628d2cea91ee20f22808ca0b84abb2ca9c98 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -64,6 +64,7 @@
namespace blink {
+// TODO(wangxianzhu): Remove this when we no longer invalidate rects.
struct PaintInvalidationTrackingInfo {
Vector<FloatRect> invalidationRects;
Vector<String> invalidationObjects;
@@ -785,7 +786,7 @@ void GraphicsLayer::setSize(const FloatSize& size)
// The red debug fill needs to be invalidated if the layer resizes.
if (m_displayItemList) {
ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
- m_displayItemList->invalidate(displayItemClient());
+ m_displayItemList->invalidateUntracked(displayItemClient());
}
#endif
}
@@ -986,7 +987,7 @@ void GraphicsLayer::setNeedsDisplayInRect(const IntRect& rect, PaintInvalidation
void GraphicsLayer::invalidateDisplayItemClient(const DisplayItemClientWrapper& displayItemClient)
{
ASSERT(RuntimeEnabledFeatures::slimmingPaintEnabled());
- displayItemList()->invalidate(displayItemClient.displayItemClient());
+ displayItemList()->invalidate(displayItemClient);
if (isTrackingPaintInvalidations())
trackPaintInvalidationObject(displayItemClient.debugName());
}
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/platform/graphics/paint/DisplayItemList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698