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

Unified Diff: third_party/WebKit/Source/core/paint/ViewPainter.cpp

Issue 2623043002: Fix first paint tracking for SPv2 (Closed)
Patch Set: - Created 3 years, 11 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/paint/ViewPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ViewPainter.cpp b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
index ac91a1edeb46d394339a162e1c8b620093905389..2d3ac26d80527cf1138313cacbc200fadde28876 100644
--- a/third_party/WebKit/Source/core/paint/ViewPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
@@ -167,12 +167,10 @@ void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo) {
shouldDrawBackgroundInSeparateBuffer
? rootBackgroundColor
: baseBackgroundColor.blend(rootBackgroundColor);
- if (combinedBackgroundColor != frameView.baseBackgroundColor() &&
- !context.getPaintController().nonDefaultBackgroundColorPainted()) {
- TRACE_EVENT_INSTANT0("blink.user_timing", "paintNonDefaultBackgroundColor",
- TRACE_EVENT_SCOPE_GLOBAL);
- context.getPaintController().setNonDefaultBackgroundColorPainted();
- }
+
+ if (combinedBackgroundColor != frameView.baseBackgroundColor())
+ context.getPaintController().setFirstPainted();
+
if (combinedBackgroundColor.alpha()) {
if (!combinedBackgroundColor.hasAlpha() &&
RuntimeEnabledFeatures::slimmingPaintV2Enabled())
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.cpp ('k') | third_party/WebKit/Source/platform/graphics/GraphicsLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698