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

Unified Diff: Source/platform/graphics/paint/DisplayItem.h

Issue 892293002: First version of new merge algorithm (not enabled yet) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again again Created 5 years, 10 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
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DisplayItem.h
diff --git a/Source/platform/graphics/paint/DisplayItem.h b/Source/platform/graphics/paint/DisplayItem.h
index c2c64e2c5283005ceddbbe8583bd29f1f7292587..665778bca4c43abeb510576361ce4ade98de6d75 100644
--- a/Source/platform/graphics/paint/DisplayItem.h
+++ b/Source/platform/graphics/paint/DisplayItem.h
@@ -121,11 +121,22 @@ public:
EndTransform,
BeginClipPath,
EndClipPath,
- };
- // Create a dummy display item which just holds the id but has no display operation.
- // It helps a CachedDisplayItem to match the corresponding original empty display item.
- static PassOwnPtr<DisplayItem> create(DisplayItemClient client, Type type) { return adoptPtr(new DisplayItem(client, type)); }
+ SubtreeCachedFirst,
+ SubtreeCachedPaintPhaseFirst = SubtreeCachedFirst,
+ SubtreeCachedPaintPhaseLast = SubtreeCachedPaintPhaseFirst + PaintPhaseMax,
+ SubtreeCachedLast = SubtreeCachedPaintPhaseLast,
+
+ BeginSubtreeFirst,
+ BeginSubtreePaintPhaseFirst = BeginSubtreeFirst,
+ BeginSubtreePaintPhaseLast = BeginSubtreePaintPhaseFirst + PaintPhaseMax,
+ BeginSubtreeLast = BeginSubtreePaintPhaseLast,
+
+ EndSubtreeFirst,
+ EndSubtreePaintPhaseFirst = EndSubtreeFirst,
+ EndSubtreePaintPhaseLast = EndSubtreePaintPhaseFirst + PaintPhaseMax,
+ EndSubtreeLast = EndSubtreePaintPhaseLast,
+ };
virtual ~DisplayItem() { }
@@ -185,6 +196,16 @@ public:
DEFINE_PAIRED_CATEGORY_METHODS(Scroll, scroll)
DEFINE_PAINT_PHASE_CONVERSION_METHOD(Scroll)
+ DEFINE_CATEGORY_METHODS(SubtreeCached)
+ DEFINE_PAINT_PHASE_CONVERSION_METHOD(SubtreeCached)
+ DEFINE_CATEGORY_METHODS(BeginSubtree)
+ DEFINE_PAINT_PHASE_CONVERSION_METHOD(BeginSubtree)
+ DEFINE_CATEGORY_METHODS(EndSubtree)
+ DEFINE_PAINT_PHASE_CONVERSION_METHOD(EndSubtree)
+ DEFINE_CONVERSION_METHODS(SubtreeCached, subtreeCached, BeginSubtree, beginSubtree)
+ DEFINE_CONVERSION_METHODS(SubtreeCached, subtreeCached, EndSubtree, endSubtree)
+ DEFINE_CONVERSION_METHODS(BeginSubtree, beginSubtree, EndSubtree, endSubtree)
+
virtual bool isBegin() const { return false; }
virtual bool isEnd() const { return false; }
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/paint/DisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698