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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.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 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 DisplayItem_h 5 #ifndef DisplayItem_h
6 #define DisplayItem_h 6 #define DisplayItem_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/graphics/ContiguousContainer.h" 9 #include "platform/graphics/ContiguousContainer.h"
10 #include "platform/graphics/paint/DisplayItemClient.h" 10 #include "platform/graphics/paint/DisplayItemClient.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 void setScope(unsigned scope) { m_scope = scope; } 254 void setScope(unsigned scope) { m_scope = scope; }
255 unsigned scope() { return m_scope; } 255 unsigned scope() { return m_scope; }
256 256
257 // Size of this object in memory, used to move it with memcpy. 257 // Size of this object in memory, used to move it with memcpy.
258 // This is not sizeof(*this), because it needs to account for the size of 258 // This is not sizeof(*this), because it needs to account for the size of
259 // the derived class (i.e. runtime type). Derived classes are expected to 259 // the derived class (i.e. runtime type). Derived classes are expected to
260 // supply this to the DisplayItem constructor. 260 // supply this to the DisplayItem constructor.
261 size_t derivedSize() const { return m_derivedSize; } 261 size_t derivedSize() const { return m_derivedSize; }
262 262
263 // For DisplayItemList only. Painters should use DisplayItemCacheSkipper ins tead. 263 // For PaintController only. Painters should use DisplayItemCacheSkipper ins tead.
264 void setSkippedCache() { m_skippedCache = true; } 264 void setSkippedCache() { m_skippedCache = true; }
265 bool skippedCache() const { return m_skippedCache; } 265 bool skippedCache() const { return m_skippedCache; }
266 266
267 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const { } 267 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const { }
268 268
269 // See comments of enum Type for usage of the following macros. 269 // See comments of enum Type for usage of the following macros.
270 #define DEFINE_CATEGORY_METHODS(Category) \ 270 #define DEFINE_CATEGORY_METHODS(Category) \
271 static bool is##Category##Type(Type type) { return type >= Category##First & & type <= Category##Last; } \ 271 static bool is##Category##Type(Type type) { return type >= Category##First & & type <= Category##Last; } \
272 bool is##Category() const { return is##Category##Type(type()); } 272 bool is##Category() const { return is##Category##Type(type()); }
273 273
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0; 394 bool isEndAndPairedWith(DisplayItem::Type otherType) const override = 0;
395 #endif 395 #endif
396 396
397 private: 397 private:
398 bool isEnd() const final { return true; } 398 bool isEnd() const final { return true; }
399 }; 399 };
400 400
401 } // namespace blink 401 } // namespace blink
402 402
403 #endif // DisplayItem_h 403 #endif // DisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698