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

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

Issue 2423513002: Simplify incremental paint invalidation (Closed)
Patch Set: Update test and rebaseline layout tests 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('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/GraphicsLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index d7de3109f0da010c95da2a85d3d993dd1d57901f..34dd49cd490920478e9a9f77f1a6c85429c1ab76 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -516,13 +516,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) {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698