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

Unified Diff: cc/resources/drawing_display_item.h

Issue 939463003: Resolve FIXMEs in cc for Display Item Lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed location offset. Created 5 years, 10 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: cc/resources/drawing_display_item.h
diff --git a/cc/resources/drawing_display_item.h b/cc/resources/drawing_display_item.h
index 1f63ed34e2e9c05bb25ab5307c54c47089bebafa..b45a0392ad0756ef3a45212106dbcbb2cac8c13c 100644
--- a/cc/resources/drawing_display_item.h
+++ b/cc/resources/drawing_display_item.h
@@ -21,9 +21,9 @@ class CC_EXPORT DrawingDisplayItem : public DisplayItem {
public:
~DrawingDisplayItem() override;
- static scoped_ptr<DrawingDisplayItem> Create(skia::RefPtr<SkPicture> picture,
- gfx::PointF location) {
- return make_scoped_ptr(new DrawingDisplayItem(picture, location));
+ static scoped_ptr<DrawingDisplayItem> Create(
+ skia::RefPtr<SkPicture> picture) {
+ return make_scoped_ptr(new DrawingDisplayItem(picture));
}
void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
@@ -35,11 +35,10 @@ class CC_EXPORT DrawingDisplayItem : public DisplayItem {
void AsValueInto(base::trace_event::TracedValue* array) const override;
protected:
- DrawingDisplayItem(skia::RefPtr<SkPicture> picture, gfx::PointF location);
+ explicit DrawingDisplayItem(skia::RefPtr<SkPicture> picture);
private:
skia::RefPtr<SkPicture> picture_;
- gfx::PointF location_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698