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

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

Issue 1011703005: [Slimming Paint] Allow 3D transforms of different types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: debug strings Created 5 years, 9 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: Source/platform/graphics/paint/DisplayItem.cpp
diff --git a/Source/platform/graphics/paint/DisplayItem.cpp b/Source/platform/graphics/paint/DisplayItem.cpp
index b63c249dae50aac7b7da2100f2bf6fde9e0e92e1..11063619a2f273352020cb7b63b76193161b3f5a 100644
--- a/Source/platform/graphics/paint/DisplayItem.cpp
+++ b/Source/platform/graphics/paint/DisplayItem.cpp
@@ -97,6 +97,16 @@ static WTF::String clipTypeAsDebugString(DisplayItem::Type type)
}
}
+static String transform3DTypeAsDebugString(DisplayItem::Type type)
+{
+ switch (type) {
+ case DisplayItem::Transform3DElementTransform: return "Transform3DElementTransform";
+ default:
+ ASSERT_NOT_REACHED();
+ return "Unknown";
+ }
+}
+
WTF::String DisplayItem::typeAsDebugString(Type type)
{
if (isDrawingType(type))
@@ -116,6 +126,11 @@ WTF::String DisplayItem::typeAsDebugString(Type type)
if (isEndScrollType(type))
return "End" + typeAsDebugString(endScrollTypeToScrollType(type));
+ if (isTransform3DType(type))
+ return transform3DTypeAsDebugString(type);
+ if (isEndTransform3DType(type))
+ return "End" + transform3DTypeAsDebugString(endTransform3DTypeToTransform3DType(type));
+
PAINT_PHASE_BASED_DEBUG_STRINGS(SubtreeCached);
PAINT_PHASE_BASED_DEBUG_STRINGS(BeginSubtree);
PAINT_PHASE_BASED_DEBUG_STRINGS(EndSubtree);
@@ -127,8 +142,6 @@ WTF::String DisplayItem::typeAsDebugString(Type type)
case EndCompositing: return "EndCompositing";
case BeginTransform: return "BeginTransform";
case EndTransform: return "EndTransform";
- case BeginTransform3D: return "BeginTransform3D";
- case EndTransform3D: return "EndTransform3D";
case BeginClipPath: return "BeginClipPath";
case EndClipPath: return "EndClipPath";
default:

Powered by Google App Engine
This is Rietveld 408576698