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

Unified Diff: cc/playback/float_clip_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/float_clip_display_item.h ('k') | cc/playback/recording_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « cc/playback/float_clip_display_item.h ('k') | cc/playback/recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698