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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.h

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 6 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
OLDNEW
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
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,
191 const LayoutSize& offset_from_layout_object); 192 const LayoutSize& offset_from_layout_object);
192 193
193 void ShowDebugData() const { ShowDebugDataInternal(false); } 194 void ShowDebugData() const { ShowDebugDataInternal(false); }
194 #ifndef NDEBUG 195 #ifndef NDEBUG
195 void ShowDebugDataWithRecords() const { ShowDebugDataInternal(true); } 196 void ShowDebugDataWithRecords() const { ShowDebugDataInternal(true); }
196 #endif 197 #endif
197 198
198 #if DCHECK_IS_ON() 199 #if DCHECK_IS_ON()
199 void AssertDisplayItemClientsAreLive(); 200 void AssertDisplayItemClientsAreLive();
200 201
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 CachedSubsequenceMap new_cached_subsequences_; 450 CachedSubsequenceMap new_cached_subsequences_;
450 size_t last_cached_subsequence_end_; 451 size_t last_cached_subsequence_end_;
451 452
452 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedSubsequenceSwapOrder); 453 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedSubsequenceSwapOrder);
453 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedNestedSubsequenceUpdate); 454 FRIEND_TEST_ALL_PREFIXES(PaintControllerTest, CachedNestedSubsequenceUpdate);
454 }; 455 };
455 456
456 } // namespace blink 457 } // namespace blink
457 458
458 #endif // PaintController_h 459 #endif // PaintController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698