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 <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 #include "platform/PlatformExport.h" | 10 #include "platform/PlatformExport.h" |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 void SetTextPainted(); | 181 void SetTextPainted(); |
182 void SetImagePainted(); | 182 void SetImagePainted(); |
183 | 183 |
184 // Returns displayItemList added using createAndAppend() since beginning or | 184 // Returns displayItemList added using createAndAppend() since beginning or |
185 // the last commitNewDisplayItems(). Use with care. | 185 // the last commitNewDisplayItems(). Use with care. |
186 DisplayItemList& NewDisplayItemList() { return new_display_item_list_; } | 186 DisplayItemList& NewDisplayItemList() { return new_display_item_list_; } |
187 | 187 |
188 void AppendDebugDrawingAfterCommit( | 188 void AppendDebugDrawingAfterCommit( |
189 const DisplayItemClient&, | 189 const DisplayItemClient&, |
190 sk_sp<PaintRecord>, | 190 sk_sp<PaintRecord>, |
191 const FloatRect& record_bounds, | |
192 const LayoutSize& offset_from_layout_object); | 191 const LayoutSize& offset_from_layout_object); |
193 | 192 |
194 void ShowDebugData() const { ShowDebugDataInternal(false); } | 193 void ShowDebugData() const { ShowDebugDataInternal(false); } |
195 #ifndef NDEBUG | 194 #ifndef NDEBUG |
196 void ShowDebugDataWithRecords() const { ShowDebugDataInternal(true); } | 195 void ShowDebugDataWithRecords() const { ShowDebugDataInternal(true); } |
197 #endif | 196 #endif |
198 | 197 |
199 #if DCHECK_IS_ON() | 198 #if DCHECK_IS_ON() |
200 void AssertDisplayItemClientsAreLive(); | 199 void AssertDisplayItemClientsAreLive(); |
201 | 200 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 CachedSubsequenceMap new_cached_subsequences_; | 449 CachedSubsequenceMap new_cached_subsequences_; |
451 size_t last_cached_subsequence_end_; | 450 size_t last_cached_subsequence_end_; |
452 | 451 |
453 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedSubsequenceSwapOrder); | 452 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedSubsequenceSwapOrder); |
454 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedNestedSubsequenceUpdate); | 453 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedNestedSubsequenceUpdate); |
455 }; | 454 }; |
456 | 455 |
457 } // namespace blink | 456 } // namespace blink |
458 | 457 |
459 #endif // PaintController_h | 458 #endif // PaintController_h |
OLD | NEW |