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

Side by Side Diff: cc/playback/filter_display_item.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « cc/playback/drawing_display_item.cc ('k') | cc/playback/filter_display_item.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 10 matching lines...) Expand all
21 21
22 class CC_EXPORT FilterDisplayItem : public DisplayItem { 22 class CC_EXPORT FilterDisplayItem : public DisplayItem {
23 public: 23 public:
24 FilterDisplayItem(const FilterOperations& filters, 24 FilterDisplayItem(const FilterOperations& filters,
25 const gfx::RectF& bounds, 25 const gfx::RectF& bounds,
26 const gfx::PointF& origin); 26 const gfx::PointF& origin);
27 explicit FilterDisplayItem(const proto::DisplayItem& proto); 27 explicit FilterDisplayItem(const proto::DisplayItem& proto);
28 ~FilterDisplayItem() override; 28 ~FilterDisplayItem() override;
29 29
30 void ToProtobuf(proto::DisplayItem* proto) const override; 30 void ToProtobuf(proto::DisplayItem* proto) const override;
31 void Raster(SkCanvas* canvas, 31 void Raster(CdlCanvas* canvas,
32 SkPicture::AbortCallback* callback) const override; 32 SkPicture::AbortCallback* callback) const override;
33 void AsValueInto(const gfx::Rect& visual_rect, 33 void AsValueInto(const gfx::Rect& visual_rect,
34 base::trace_event::TracedValue* array) const override; 34 base::trace_event::TracedValue* array) const override;
35 size_t ExternalMemoryUsage() const override; 35 size_t ExternalMemoryUsage() const override;
36 36
37 int ApproximateOpCount() const { return 1; } 37 int ApproximateOpCount() const { return 1; }
38 38
39 private: 39 private:
40 void SetNew(const FilterOperations& filters, 40 void SetNew(const FilterOperations& filters,
41 const gfx::RectF& bounds, 41 const gfx::RectF& bounds,
42 const gfx::PointF& origin); 42 const gfx::PointF& origin);
43 43
44 FilterOperations filters_; 44 FilterOperations filters_;
45 gfx::RectF bounds_; 45 gfx::RectF bounds_;
46 gfx::PointF origin_; 46 gfx::PointF origin_;
47 }; 47 };
48 48
49 class CC_EXPORT EndFilterDisplayItem : public DisplayItem { 49 class CC_EXPORT EndFilterDisplayItem : public DisplayItem {
50 public: 50 public:
51 EndFilterDisplayItem(); 51 EndFilterDisplayItem();
52 explicit EndFilterDisplayItem(const proto::DisplayItem& proto); 52 explicit EndFilterDisplayItem(const proto::DisplayItem& proto);
53 ~EndFilterDisplayItem() override; 53 ~EndFilterDisplayItem() override;
54 54
55 static std::unique_ptr<EndFilterDisplayItem> Create() { 55 static std::unique_ptr<EndFilterDisplayItem> Create() {
56 return base::MakeUnique<EndFilterDisplayItem>(); 56 return base::MakeUnique<EndFilterDisplayItem>();
57 } 57 }
58 58
59 void ToProtobuf(proto::DisplayItem* proto) const override; 59 void ToProtobuf(proto::DisplayItem* proto) const override;
60 void Raster(SkCanvas* canvas, 60 void Raster(CdlCanvas* canvas,
61 SkPicture::AbortCallback* callback) const override; 61 SkPicture::AbortCallback* callback) const override;
62 void AsValueInto(const gfx::Rect& visual_rect, 62 void AsValueInto(const gfx::Rect& visual_rect,
63 base::trace_event::TracedValue* array) const override; 63 base::trace_event::TracedValue* array) const override;
64 size_t ExternalMemoryUsage() const override; 64 size_t ExternalMemoryUsage() const override;
65 65
66 int ApproximateOpCount() const { return 0; } 66 int ApproximateOpCount() const { return 0; }
67 }; 67 };
68 68
69 } // namespace cc 69 } // namespace cc
70 70
71 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ 71 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/drawing_display_item.cc ('k') | cc/playback/filter_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698