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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2874553002: [SPv2] Fix layout test crashes about raster invalidation (Closed)
Patch Set: - 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/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index ae3818d3c8d36c02f6bc7066a16ebf685155cf5d..deb7bc4f3fcd47d2855635e8db9593088c2331f2 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3744,10 +3744,12 @@ void FrameView::SetTracksPaintInvalidations(bool track_paint_invalidations) {
? new Vector<ObjectPaintInvalidation>
: nullptr);
if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
+ if (!paint_controller_)
+ paint_controller_ = PaintController::Create();
paint_controller_->SetTracksRasterInvalidations(
track_paint_invalidations);
- paint_artifact_compositor_->SetTracksRasterInvalidations(
- track_paint_invalidations);
+ if (paint_artifact_compositor_)
+ paint_artifact_compositor_->ResetTrackedRasterInvalidations();
} else {
layout_view.Compositor()->SetTracksRasterInvalidations(
track_paint_invalidations);

Powered by Google App Engine
This is Rietveld 408576698