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

Side by Side Diff: Source/platform/graphics/paint/SubsequenceRecorder.h

Issue 1313223002: Simplify subtree (now subsequence) caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Subtree => Subsequence 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SubsequenceRecorder_h
6 #define SubsequenceRecorder_h
7
8 #include "platform/graphics/paint/DisplayItemClient.h"
9
10 namespace blink {
11
12 class DisplayItemList;
13 class GraphicsContext;
14
15 // Records subsequence information during painting. The recorder's life span cov ers
16 // all painting operations executed during the root of the subsequence's paint m ethod
17 // for the paint phase.
chrishtr 2015/08/26 23:34:23 This comment is not quite accurate, because it dep
Xianzhu 2015/08/26 23:42:36 The new comment looks great. Thanks. Done.
18 class PLATFORM_EXPORT SubsequenceRecorder {
19 public:
20 static bool useCachedSubsequenceIfPossible(GraphicsContext&, const DisplayIt emClientWrapper&);
21
22 SubsequenceRecorder(GraphicsContext&, const DisplayItemClientWrapper&);
23 ~SubsequenceRecorder();
24
25 private:
26 DisplayItemList* m_displayItemList;
27 DisplayItemClientWrapper m_client;
28 };
29
30 } // namespace blink
31
32 #endif // SubsequenceRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698