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

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

Issue 2872423002: Tweak PaintInvalidationReasons (Closed)
Patch Set: Rebaseline-cl Created 3 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
index 116a3deac62cda511a4b19fcc6b5c4a0526087e2..ebb192b3203d7f7e29c8d392cc48e36ffad12108 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
@@ -1004,7 +1004,8 @@ void GraphicsLayer::SetIsRootForIsolatedGroup(bool isolated) {
void GraphicsLayer::SetContentsNeedsDisplay() {
if (WebLayer* contents_layer = ContentsLayerIfRegistered()) {
contents_layer->Invalidate();
- TrackRasterInvalidation(*this, contents_rect_, kPaintInvalidationFull);
+ TrackRasterInvalidation(*this, contents_rect_,
+ PaintInvalidationReason::kFull);
}
}
@@ -1020,7 +1021,7 @@ void GraphicsLayer::SetNeedsDisplay() {
GetPaintController().InvalidateAll();
TrackRasterInvalidation(*this, IntRect(IntPoint(), ExpandedIntSize(size_)),
- kPaintInvalidationFull);
+ PaintInvalidationReason::kFull);
}
DISABLE_CFI_PERF

Powered by Google App Engine
This is Rietveld 408576698