OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 gfx::RectF bounds_; | 41 gfx::RectF bounds_; |
42 }; | 42 }; |
43 | 43 |
44 class CC_EXPORT EndFilterDisplayItem : public DisplayItem { | 44 class CC_EXPORT EndFilterDisplayItem : public DisplayItem { |
45 public: | 45 public: |
46 EndFilterDisplayItem(); | 46 EndFilterDisplayItem(); |
47 explicit EndFilterDisplayItem(const proto::DisplayItem& proto); | 47 explicit EndFilterDisplayItem(const proto::DisplayItem& proto); |
48 ~EndFilterDisplayItem() override; | 48 ~EndFilterDisplayItem() override; |
49 | 49 |
50 static std::unique_ptr<EndFilterDisplayItem> Create() { | 50 static std::unique_ptr<EndFilterDisplayItem> Create() { |
51 return base::WrapUnique(new EndFilterDisplayItem()); | 51 return base::MakeUnique<EndFilterDisplayItem>(); |
52 } | 52 } |
53 | 53 |
54 void ToProtobuf(proto::DisplayItem* proto) const override; | 54 void ToProtobuf(proto::DisplayItem* proto) const override; |
55 void Raster(SkCanvas* canvas, | 55 void Raster(SkCanvas* canvas, |
56 SkPicture::AbortCallback* callback) const override; | 56 SkPicture::AbortCallback* callback) const override; |
57 void AsValueInto(const gfx::Rect& visual_rect, | 57 void AsValueInto(const gfx::Rect& visual_rect, |
58 base::trace_event::TracedValue* array) const override; | 58 base::trace_event::TracedValue* array) const override; |
59 size_t ExternalMemoryUsage() const override; | 59 size_t ExternalMemoryUsage() const override; |
60 | 60 |
61 int ApproximateOpCount() const { return 0; } | 61 int ApproximateOpCount() const { return 0; } |
62 }; | 62 }; |
63 | 63 |
64 } // namespace cc | 64 } // namespace cc |
65 | 65 |
66 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ | 66 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ |
OLD | NEW |