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

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

Issue 2385123003: Rewrap comments to 80 columns in Source/platform/graphics/paint/. (Closed)
Patch Set: Resync Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/paint/SubsequenceRecorder.h" 5 #include "platform/graphics/paint/SubsequenceRecorder.h"
6 6
7 #include "platform/RuntimeEnabledFeatures.h" 7 #include "platform/RuntimeEnabledFeatures.h"
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/paint/PaintController.h" 9 #include "platform/graphics/paint/PaintController.h"
10 #include "platform/graphics/paint/SubsequenceDisplayItem.h" 10 #include "platform/graphics/paint/SubsequenceDisplayItem.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 SubsequenceRecorder::~SubsequenceRecorder() { 26 SubsequenceRecorder::~SubsequenceRecorder() {
27 if (m_paintController.displayItemConstructionIsDisabled()) 27 if (m_paintController.displayItemConstructionIsDisabled())
28 return; 28 return;
29 29
30 if (m_paintController.lastDisplayItemIsNoopBegin()) { 30 if (m_paintController.lastDisplayItemIsNoopBegin()) {
31 ASSERT(m_beginSubsequenceIndex == 31 ASSERT(m_beginSubsequenceIndex ==
32 m_paintController.newDisplayItemList().size() - 1); 32 m_paintController.newDisplayItemList().size() - 1);
33 // Remove uncacheable no-op BeginSubsequence/EndSubsequence pairs. 33 // Remove uncacheable no-op BeginSubsequence/EndSubsequence pairs.
34 // Don't remove cacheable no-op pairs because we need to match them later wi th CachedSubsequences. 34 // Don't remove cacheable no-op pairs because we need to match them later
35 // with CachedSubsequences.
35 if (m_paintController.newDisplayItemList().last().skippedCache()) { 36 if (m_paintController.newDisplayItemList().last().skippedCache()) {
36 m_paintController.removeLastDisplayItem(); 37 m_paintController.removeLastDisplayItem();
37 return; 38 return;
38 } 39 }
39 } 40 }
40 41
41 m_paintController.createAndAppend<EndSubsequenceDisplayItem>(m_client); 42 m_paintController.createAndAppend<EndSubsequenceDisplayItem>(m_client);
42 } 43 }
43 44
44 } // namespace blink 45 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698