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

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

Issue 2423513002: Simplify incremental paint invalidation (Closed)
Patch Set: Test Created 4 years, 2 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 7fe49b034efb7cb49ab24f0cac61828e7ef8ba14..83bbc97bc429ef36fed16c0bf2f5e5c81be29e20 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -517,13 +517,16 @@ void GraphicsLayer::resetTrackedRasterInvalidations() {
}
bool GraphicsLayer::hasTrackedRasterInvalidations() const {
- RasterInvalidationTracking* tracking =
- rasterInvalidationTrackingMap().find(this);
- if (tracking)
+ if (auto* tracking = getRasterInvalidationTracking())
return !tracking->trackedRasterInvalidations.isEmpty();
return false;
}
+const RasterInvalidationTracking* GraphicsLayer::getRasterInvalidationTracking()
+ const {
+ return rasterInvalidationTrackingMap().find(this);
+}
+
void GraphicsLayer::trackRasterInvalidation(const DisplayItemClient& client,
const IntRect& rect,
PaintInvalidationReason reason) {

Powered by Google App Engine
This is Rietveld 408576698