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

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

Issue 1294233004: Subtree caching implementation in blink-core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ready for review Created 5 years, 4 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 SubtreeRecorder_h
6 #define SubtreeRecorder_h
7
8 #include "platform/graphics/paint/DisplayItemClient.h"
9
10 namespace blink {
11
12 class DisplayItemList;
13 class GraphicsContext;
14
15 // Records subtree information during painting. The recorder's life span covers
16 // all painting operations executed during the root of the subtree's paint metho d
17 // for the paint phase.
18 class PLATFORM_EXPORT SubtreeRecorder {
19 public:
20 SubtreeRecorder(GraphicsContext&, const DisplayItemClientWrapper&, int paint Phase);
21 ~SubtreeRecorder();
22
23 bool canUseCache() const;
24
25 private:
26 DisplayItemList* m_displayItemList;
27 DisplayItemClientWrapper m_client;
28 const int m_paintPhase;
29 bool m_canUseCache;
30 #if ENABLE(ASSERT)
31 mutable bool m_checkedCanUseCache;
32 #endif
33 };
34
35 } // namespace blink
36
37 #endif // SubtreeRecorder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698