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

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

Issue 2817563002: Always pair begin and end subsequence calls (Closed)
Patch Set: Created 3 years, 8 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/paint/PaintController.cpp ('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/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 1d2d7fa929242c52d9e7a4799474a1213db29857..b35795d65a84061b631e37b5505a11d9157af707 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
@@ -15,14 +15,14 @@ SubsequenceRecorder::SubsequenceRecorder(GraphicsContext& context,
: paint_controller_(context.GetPaintController()),
client_(client),
begin_subsequence_index_(0) {
+#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
+ paint_controller_.BeginSubsequence(client_);
+#endif
+
if (paint_controller_.DisplayItemConstructionIsDisabled())
return;
begin_subsequence_index_ = paint_controller_.NewDisplayItemList().size();
-
-#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
- paint_controller_.BeginSubsequence(client_);
-#endif
}
SubsequenceRecorder::~SubsequenceRecorder() {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698