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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 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
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 "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"
11 #include "platform/geometry/LayoutPoint.h" 11 #include "platform/geometry/LayoutPoint.h"
12 #include "platform/graphics/ContiguousContainer.h" 12 #include "platform/graphics/ContiguousContainer.h"
13 #include "platform/graphics/paint/DisplayItem.h" 13 #include "platform/graphics/paint/DisplayItem.h"
14 #include "platform/graphics/paint/DisplayItemList.h" 14 #include "platform/graphics/paint/DisplayItemList.h"
15 #include "platform/graphics/paint/PaintArtifact.h" 15 #include "platform/graphics/paint/PaintArtifact.h"
16 #include "platform/graphics/paint/PaintChunk.h" 16 #include "platform/graphics/paint/PaintChunk.h"
17 #include "platform/graphics/paint/PaintChunker.h" 17 #include "platform/graphics/paint/PaintChunker.h"
18 #include "platform/graphics/paint/Transform3DDisplayItem.h" 18 #include "platform/graphics/paint/Transform3DDisplayItem.h"
19 #include "third_party/skia/include/core/SkRefCnt.h"
19 #include "wtf/Alignment.h" 20 #include "wtf/Alignment.h"
20 #include "wtf/Assertions.h" 21 #include "wtf/Assertions.h"
21 #include "wtf/HashMap.h" 22 #include "wtf/HashMap.h"
22 #include "wtf/HashSet.h" 23 #include "wtf/HashSet.h"
23 #include "wtf/PtrUtil.h" 24 #include "wtf/PtrUtil.h"
24 #include "wtf/Vector.h" 25 #include "wtf/Vector.h"
25 #include <memory> 26 #include <memory>
26 #include <utility> 27 #include <utility>
27 28
28 class SkPicture; 29 class SkPicture;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 bool textPainted() const { return m_textPainted; } 142 bool textPainted() const { return m_textPainted; }
142 void setTextPainted() { m_textPainted = true; } 143 void setTextPainted() { m_textPainted = true; }
143 bool imagePainted() const { return m_imagePainted; } 144 bool imagePainted() const { return m_imagePainted; }
144 void setImagePainted() { m_imagePainted = true; } 145 void setImagePainted() { m_imagePainted = true; }
145 146
146 // Returns displayItemList added using createAndAppend() since beginning or 147 // Returns displayItemList added using createAndAppend() since beginning or
147 // the last commitNewDisplayItems(). Use with care. 148 // the last commitNewDisplayItems(). Use with care.
148 DisplayItemList& newDisplayItemList() { return m_newDisplayItemList; } 149 DisplayItemList& newDisplayItemList() { return m_newDisplayItemList; }
149 150
150 void appendDebugDrawingAfterCommit(const DisplayItemClient&, PassRefPtr<SkPi cture>, const LayoutSize& offsetFromLayoutObject); 151 void appendDebugDrawingAfterCommit(const DisplayItemClient&, sk_sp<SkPicture >, const LayoutSize& offsetFromLayoutObject);
151 152
152 void showDebugData() const; 153 void showDebugData() const;
153 154
154 #if DCHECK_IS_ON() 155 #if DCHECK_IS_ON()
155 void assertDisplayItemClientsAreLive(); 156 void assertDisplayItemClientsAreLive();
156 #endif 157 #endif
157 158
158 protected: 159 protected:
159 PaintController() 160 PaintController()
160 : m_newDisplayItemList(0) 161 : m_newDisplayItemList(0)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 291
291 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 292 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
292 // A stack recording subsequence clients that are currently painting. 293 // A stack recording subsequence clients that are currently painting.
293 Vector<const DisplayItemClient*> m_currentSubsequenceClients; 294 Vector<const DisplayItemClient*> m_currentSubsequenceClients;
294 #endif 295 #endif
295 }; 296 };
296 297
297 } // namespace blink 298 } // namespace blink
298 299
299 #endif // PaintController_h 300 #endif // PaintController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698