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

Unified Diff: cc/playback/transform_display_item.cc

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 years, 11 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 | « cc/playback/transform_display_item.h ('k') | cc/proto/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « cc/playback/transform_display_item.h ('k') | cc/proto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698