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