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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 2033513003: (NOT FOR COMMIT) Testing layer invalidation speedups. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
index 11983f37987640ad3af0a5dbc1012bbf102e589d..bf35ccb542d1d8f9db276f5ec1cd21ef7f91edfb 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.h
@@ -66,6 +66,12 @@ class WebLayer;
typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector;
+struct NeedsDisplayRecord {
+ IntRect r;
+ PaintInvalidationReason invalidationReason;
+ const DisplayItemClient& client;
+};
+
// GraphicsLayer is an abstraction for a rendering surface with backing store,
// which may have associated transformation and animations.
@@ -182,7 +188,7 @@ public:
void setNeedsDisplay();
// Mark the given rect (in layer coords) as needing display. Never goes deep.
- void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason, const DisplayItemClient&);
+ void setNeedsDisplayInRect(const Vector<NeedsDisplayRecord>& rects);
void setContentsNeedsDisplay();
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698