| Index: cc/playback/float_clip_display_item.cc
|
| diff --git a/cc/playback/float_clip_display_item.cc b/cc/playback/float_clip_display_item.cc
|
| index def09c9c225be1f7ce0a4c91a9f6b53494c14f2f..648bb0a315f0febd70ea797b4365f207c860e51b 100644
|
| --- a/cc/playback/float_clip_display_item.cc
|
| +++ b/cc/playback/float_clip_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"
|
| #include "ui/gfx/skia_util.h"
|
|
|
| @@ -20,16 +18,6 @@ FloatClipDisplayItem::FloatClipDisplayItem(const gfx::RectF& clip_rect)
|
| SetNew(clip_rect);
|
| }
|
|
|
| -FloatClipDisplayItem::FloatClipDisplayItem(const proto::DisplayItem& proto)
|
| - : DisplayItem(FLOAT_CLIP) {
|
| - DCHECK_EQ(proto::DisplayItem::Type_FloatClip, proto.type());
|
| -
|
| - const proto::FloatClipDisplayItem& details = proto.float_clip_item();
|
| - gfx::RectF clip_rect = ProtoToRectF(details.clip_rect());
|
| -
|
| - SetNew(clip_rect);
|
| -}
|
| -
|
| FloatClipDisplayItem::~FloatClipDisplayItem() {
|
| }
|
|
|
| @@ -37,13 +25,6 @@ void FloatClipDisplayItem::SetNew(const gfx::RectF& clip_rect) {
|
| clip_rect_ = clip_rect;
|
| }
|
|
|
| -void FloatClipDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
|
| - proto->set_type(proto::DisplayItem::Type_FloatClip);
|
| -
|
| - proto::FloatClipDisplayItem* details = proto->mutable_float_clip_item();
|
| - RectFToProto(clip_rect_, details->mutable_clip_rect());
|
| -}
|
| -
|
| void FloatClipDisplayItem::Raster(SkCanvas* canvas,
|
| SkPicture::AbortCallback* callback) const {
|
| canvas->save();
|
| @@ -61,19 +42,9 @@ void FloatClipDisplayItem::AsValueInto(
|
| EndFloatClipDisplayItem::EndFloatClipDisplayItem()
|
| : DisplayItem(END_FLOAT_CLIP) {}
|
|
|
| -EndFloatClipDisplayItem::EndFloatClipDisplayItem(
|
| - const proto::DisplayItem& proto)
|
| - : DisplayItem(END_FLOAT_CLIP) {
|
| - DCHECK_EQ(proto::DisplayItem::Type_EndFloatClip, proto.type());
|
| -}
|
| -
|
| EndFloatClipDisplayItem::~EndFloatClipDisplayItem() {
|
| }
|
|
|
| -void EndFloatClipDisplayItem::ToProtobuf(proto::DisplayItem* proto) const {
|
| - proto->set_type(proto::DisplayItem::Type_EndFloatClip);
|
| -}
|
| -
|
| void EndFloatClipDisplayItem::Raster(
|
| SkCanvas* canvas,
|
| SkPicture::AbortCallback* callback) const {
|
|
|