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

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

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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"
(...skipping 26 matching lines...) Expand all
37 37
38 // Responsible for processing display items as they are produced, and producing 38 // Responsible for processing display items as they are produced, and producing
39 // 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,
40 // cache invalidation, and merging. 40 // cache invalidation, and merging.
41 class PLATFORM_EXPORT PaintController { 41 class PLATFORM_EXPORT PaintController {
42 WTF_MAKE_NONCOPYABLE(PaintController); 42 WTF_MAKE_NONCOPYABLE(PaintController);
43 USING_FAST_MALLOC(PaintController); 43 USING_FAST_MALLOC(PaintController);
44 44
45 public: 45 public:
46 static std::unique_ptr<PaintController> create() { 46 static std::unique_ptr<PaintController> create() {
47 return wrapUnique(new PaintController()); 47 return WTF::wrapUnique(new PaintController());
48 } 48 }
49 49
50 ~PaintController() { 50 ~PaintController() {
51 // New display items should be committed before PaintController is 51 // New display items should be committed before PaintController is
52 // destructed. 52 // destructed.
53 DCHECK(m_newDisplayItemList.isEmpty()); 53 DCHECK(m_newDisplayItemList.isEmpty());
54 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 54 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
55 DisplayItemClient::endShouldKeepAliveAllClients(this); 55 DisplayItemClient::endShouldKeepAliveAllClients(this);
56 #endif 56 #endif
57 } 57 }
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS 380 #if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
381 // A stack recording subsequence clients that are currently painting. 381 // A stack recording subsequence clients that are currently painting.
382 Vector<const DisplayItemClient*> m_currentSubsequenceClients; 382 Vector<const DisplayItemClient*> m_currentSubsequenceClients;
383 #endif 383 #endif
384 }; 384 };
385 385
386 } // namespace blink 386 } // namespace blink
387 387
388 #endif // PaintController_h 388 #endif // PaintController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698