Index: cc/playback/transform_display_item.cc |
diff --git a/cc/playback/transform_display_item.cc b/cc/playback/transform_display_item.cc |
index a495d9a82f4dbcf6dc28d816a9e2316895e3cbda..173170f731a98b62df17f75f2e022a00dfabd6ed 100644 |
--- a/cc/playback/transform_display_item.cc |
+++ b/cc/playback/transform_display_item.cc |
@@ -8,8 +8,6 @@ |
#include "base/strings/stringprintf.h" |
#include "base/trace_event/trace_event_argument.h" |
-#include "cc/proto/display_item.pb.h" |
-#include "cc/proto/gfx_conversions.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
namespace cc { |
@@ -19,16 +17,6 @@ TransformDisplayItem::TransformDisplayItem(const gfx::Transform& transform) |
SetNew(transform); |
} |
-TransformDisplayItem::TransformDisplayItem(const proto::DisplayItem& proto) |
- : DisplayItem(TRANSFORM) { |
- DCHECK_EQ(proto::DisplayItem::Type_Transform, proto.type()); |
- |
- const proto::TransformDisplayItem& details = proto.transform_item(); |
- gfx::Transform transform = ProtoToTransform(details.transform()); |
- |
- SetNew(transform); |
-} |
- |
TransformDisplayItem::~TransformDisplayItem() { |
} |
@@ -36,13 +24,6 @@ void TransformDisplayItem::SetNew(const gfx::Transform& transform) { |
transform_ = transform; |
} |
-void TransformDisplayItem::ToProtobuf(proto::DisplayItem* proto) const { |
- proto->set_type(proto::DisplayItem::Type_Transform); |
- |
- proto::TransformDisplayItem* details = proto->mutable_transform_item(); |
- TransformToProto(transform_, details->mutable_transform()); |
-} |
- |
void TransformDisplayItem::Raster(SkCanvas* canvas, |
SkPicture::AbortCallback* callback) const { |
canvas->save(); |
@@ -61,19 +42,9 @@ void TransformDisplayItem::AsValueInto( |
EndTransformDisplayItem::EndTransformDisplayItem() |
: DisplayItem(END_TRANSFORM) {} |
-EndTransformDisplayItem::EndTransformDisplayItem( |
- const proto::DisplayItem& proto) |
- : DisplayItem(END_TRANSFORM) { |
- DCHECK_EQ(proto::DisplayItem::Type_EndTransform, proto.type()); |
-} |
- |
EndTransformDisplayItem::~EndTransformDisplayItem() { |
} |
-void EndTransformDisplayItem::ToProtobuf(proto::DisplayItem* proto) const { |
- proto->set_type(proto::DisplayItem::Type_EndTransform); |
-} |
- |
void EndTransformDisplayItem::Raster( |
SkCanvas* canvas, |
SkPicture::AbortCallback* callback) const { |