OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FLOAT_CLIP_DISPLAY_ITEM_H_ | 5 #ifndef CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ |
6 #define CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ | 6 #define CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 29 matching lines...) Expand all Loading... |
40 gfx::RectF clip_rect_; | 40 gfx::RectF clip_rect_; |
41 }; | 41 }; |
42 | 42 |
43 class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem { | 43 class CC_EXPORT EndFloatClipDisplayItem : public DisplayItem { |
44 public: | 44 public: |
45 EndFloatClipDisplayItem(); | 45 EndFloatClipDisplayItem(); |
46 explicit EndFloatClipDisplayItem(const proto::DisplayItem& proto); | 46 explicit EndFloatClipDisplayItem(const proto::DisplayItem& proto); |
47 ~EndFloatClipDisplayItem() override; | 47 ~EndFloatClipDisplayItem() override; |
48 | 48 |
49 static std::unique_ptr<EndFloatClipDisplayItem> Create() { | 49 static std::unique_ptr<EndFloatClipDisplayItem> Create() { |
50 return base::WrapUnique(new EndFloatClipDisplayItem()); | 50 return base::MakeUnique<EndFloatClipDisplayItem>(); |
51 } | 51 } |
52 | 52 |
53 void ToProtobuf(proto::DisplayItem* proto) const override; | 53 void ToProtobuf(proto::DisplayItem* proto) const override; |
54 void Raster(SkCanvas* canvas, | 54 void Raster(SkCanvas* canvas, |
55 SkPicture::AbortCallback* callback) const override; | 55 SkPicture::AbortCallback* callback) const override; |
56 void AsValueInto(const gfx::Rect& visual_rect, | 56 void AsValueInto(const gfx::Rect& visual_rect, |
57 base::trace_event::TracedValue* array) const override; | 57 base::trace_event::TracedValue* array) const override; |
58 size_t ExternalMemoryUsage() const override; | 58 size_t ExternalMemoryUsage() const override; |
59 | 59 |
60 int ApproximateOpCount() const { return 0; } | 60 int ApproximateOpCount() const { return 0; } |
61 }; | 61 }; |
62 | 62 |
63 } // namespace cc | 63 } // namespace cc |
64 | 64 |
65 #endif // CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ | 65 #endif // CC_PLAYBACK_FLOAT_CLIP_DISPLAY_ITEM_H_ |
OLD | NEW |