| 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_COMPOSITING_DISPLAY_ITEM_H_ | 5 #ifndef CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ |
| 6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ | 6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bool lcd_text_requires_opaque_layer_; | 57 bool lcd_text_requires_opaque_layer_; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem { | 60 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem { |
| 61 public: | 61 public: |
| 62 EndCompositingDisplayItem(); | 62 EndCompositingDisplayItem(); |
| 63 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto); | 63 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto); |
| 64 ~EndCompositingDisplayItem() override; | 64 ~EndCompositingDisplayItem() override; |
| 65 | 65 |
| 66 static std::unique_ptr<EndCompositingDisplayItem> Create() { | 66 static std::unique_ptr<EndCompositingDisplayItem> Create() { |
| 67 return base::WrapUnique(new EndCompositingDisplayItem()); | 67 return base::MakeUnique<EndCompositingDisplayItem>(); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void ToProtobuf(proto::DisplayItem* proto) const override; | 70 void ToProtobuf(proto::DisplayItem* proto) const override; |
| 71 void Raster(SkCanvas* canvas, | 71 void Raster(SkCanvas* canvas, |
| 72 SkPicture::AbortCallback* callback) const override; | 72 SkPicture::AbortCallback* callback) const override; |
| 73 void AsValueInto(const gfx::Rect& visual_rect, | 73 void AsValueInto(const gfx::Rect& visual_rect, |
| 74 base::trace_event::TracedValue* array) const override; | 74 base::trace_event::TracedValue* array) const override; |
| 75 size_t ExternalMemoryUsage() const override; | 75 size_t ExternalMemoryUsage() const override; |
| 76 | 76 |
| 77 int ApproximateOpCount() const { return 0; } | 77 int ApproximateOpCount() const { return 0; } |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace cc | 80 } // namespace cc |
| 81 | 81 |
| 82 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ | 82 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ |
| OLD | NEW |