OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef PaintController_h | 5 #ifndef PaintController_h |
6 #define PaintController_h | 6 #define PaintController_h |
7 | 7 |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 #include "platform/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "wtf/HashSet.h" | 24 #include "wtf/HashSet.h" |
25 #include "wtf/PtrUtil.h" | 25 #include "wtf/PtrUtil.h" |
26 #include "wtf/Vector.h" | 26 #include "wtf/Vector.h" |
27 #include <memory> | 27 #include <memory> |
28 #include <utility> | 28 #include <utility> |
29 | 29 |
30 class SkPicture; | 30 class SkPicture; |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 class GraphicsContext; | |
35 | |
36 static const size_t kInitialDisplayItemListCapacityBytes = 512; | 34 static const size_t kInitialDisplayItemListCapacityBytes = 512; |
37 | 35 |
38 template class RasterInvalidationTrackingMap<const PaintChunk>; | 36 template class RasterInvalidationTrackingMap<const PaintChunk>; |
39 | 37 |
40 // Responsible for processing display items as they are produced, and producing | 38 // Responsible for processing display items as they are produced, and producing |
41 // a final paint artifact when complete. This class includes logic for caching, | 39 // a final paint artifact when complete. This class includes logic for caching, |
42 // cache invalidation, and merging. | 40 // cache invalidation, and merging. |
43 class PLATFORM_EXPORT PaintController { | 41 class PLATFORM_EXPORT PaintController { |
44 WTF_MAKE_NONCOPYABLE(PaintController); | 42 WTF_MAKE_NONCOPYABLE(PaintController); |
45 USING_FAST_MALLOC(PaintController); | 43 USING_FAST_MALLOC(PaintController); |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 364 |
367 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS | 365 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS |
368 // A stack recording subsequence clients that are currently painting. | 366 // A stack recording subsequence clients that are currently painting. |
369 Vector<const DisplayItemClient*> m_currentSubsequenceClients; | 367 Vector<const DisplayItemClient*> m_currentSubsequenceClients; |
370 #endif | 368 #endif |
371 }; | 369 }; |
372 | 370 |
373 } // namespace blink | 371 } // namespace blink |
374 | 372 |
375 #endif // PaintController_h | 373 #endif // PaintController_h |
OLD | NEW |