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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp

Issue 1379883003: Create PaintChunk and begin writing code to build paint chunks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/paint/SubsequenceRecorder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
index 146a0352723d772664343bbb6d559903c527d521..1b98dac015bcf0a0beafa2169175d1b17bee5d6b 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
@@ -20,6 +20,11 @@ bool SubsequenceRecorder::useCachedSubsequenceIfPossible(GraphicsContext& contex
ASSERT(context.displayItemList());
+ // TODO(jbroman): When SPv2 paint property code can handle it, don't skip
pdr. 2015/10/01 00:32:48 I think we should hold off on turning off subseque
jbroman 2015/10/01 18:04:20 Done.
+ // subsequence recording.
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return false;
+
if (context.displayItemList()->displayItemConstructionIsDisabled())
return false;
@@ -46,6 +51,11 @@ SubsequenceRecorder::SubsequenceRecorder(GraphicsContext& context, const Display
if (!RuntimeEnabledFeatures::slimmingPaintSubsequenceCachingEnabled())
return;
+ // TODO(jbroman): When SPv2 paint property code can handle it, don't skip
+ // subsequence recording.
+ if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
+ return;
+
ASSERT(m_displayItemList);
if (m_displayItemList->displayItemConstructionIsDisabled())
return;

Powered by Google App Engine
This is Rietveld 408576698