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

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

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
similarity index 95%
rename from third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
rename to third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index 22660f019b9909bf49e30fc2780f7601611d355e..7231a740112a39165a57430772cd08924a335e0f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef DisplayItemList_h
-#define DisplayItemList_h
+#ifndef PaintController_h
+#define PaintController_h
#include "platform/PlatformExport.h"
#include "platform/RuntimeEnabledFeatures.h"
@@ -33,13 +33,13 @@ static const size_t kInitialDisplayItemsCapacity = 64;
// Responsible for processing display items as they are produced, and producing
// a final paint artifact when complete. This class includes logic for caching,
// cache invalidation, and merging.
-class PLATFORM_EXPORT DisplayItemList {
- WTF_MAKE_NONCOPYABLE(DisplayItemList);
- WTF_MAKE_FAST_ALLOCATED(DisplayItemList);
+class PLATFORM_EXPORT PaintController {
+ WTF_MAKE_NONCOPYABLE(PaintController);
+ WTF_MAKE_FAST_ALLOCATED(PaintController);
public:
- static PassOwnPtr<DisplayItemList> create()
+ static PassOwnPtr<PaintController> create()
{
- return adoptPtr(new DisplayItemList());
+ return adoptPtr(new PaintController());
}
// These methods are called during paint invalidation (or paint if SlimmingPaintSynchronizedPainting is on).
@@ -109,7 +109,7 @@ public:
void commitNewDisplayItems(GraphicsLayer* = 0);
// Returns the approximate memory usage, excluding memory likely to be
- // shared with the embedder after copying to WebDisplayItemList.
+ // shared with the embedder after copying to WebPaintController.
// Should only be called right after commitNewDisplayItems.
size_t approximateUnsharedMemoryUsage() const;
@@ -162,7 +162,7 @@ public:
}
protected:
- DisplayItemList()
+ PaintController()
: m_newDisplayItems(kInitialDisplayItemsCapacity * kMaximumDisplayItemSize)
, m_validlyCachedClientsDirty(false)
, m_constructionDisabled(false)
@@ -233,7 +233,7 @@ private:
// in performance metrics.
bool m_constructionDisabled;
- // Indicates this DisplayItemList has ever had text. It is never reset to false.
+ // Indicates this PaintController has ever had text. It is never reset to false.
bool m_textPainted;
int m_skippingCacheCount;
@@ -262,4 +262,4 @@ private:
} // namespace blink
-#endif // DisplayItemList_h
+#endif // PaintController_h

Powered by Google App Engine
This is Rietveld 408576698