| 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_DISPLAY_ITEM_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_ITEM_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_ITEM_H_ | 6 #define CC_PLAYBACK_DISPLAY_ITEM_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } // namespace proto | 24 } // namespace proto |
| 25 | 25 |
| 26 class CC_EXPORT DisplayItem { | 26 class CC_EXPORT DisplayItem { |
| 27 public: | 27 public: |
| 28 virtual ~DisplayItem() {} | 28 virtual ~DisplayItem() {} |
| 29 | 29 |
| 30 virtual void ToProtobuf( | 30 virtual void ToProtobuf( |
| 31 proto::DisplayItem* proto, | 31 proto::DisplayItem* proto, |
| 32 ImageSerializationProcessor* image_serialization_processor) const = 0; | 32 ImageSerializationProcessor* image_serialization_processor) const = 0; |
| 33 virtual void Raster(SkCanvas* canvas, | 33 virtual void Raster(SkCanvas* canvas, |
| 34 const gfx::Rect& canvas_target_playback_rect, | |
| 35 SkPicture::AbortCallback* callback) const = 0; | 34 SkPicture::AbortCallback* callback) const = 0; |
| 36 virtual void AsValueInto(const gfx::Rect& visual_rect, | 35 virtual void AsValueInto(const gfx::Rect& visual_rect, |
| 37 base::trace_event::TracedValue* array) const = 0; | 36 base::trace_event::TracedValue* array) const = 0; |
| 38 // For tracing. | 37 // For tracing. |
| 39 virtual size_t ExternalMemoryUsage() const = 0; | 38 virtual size_t ExternalMemoryUsage() const = 0; |
| 40 | 39 |
| 41 protected: | 40 protected: |
| 42 DisplayItem(); | 41 DisplayItem(); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 } // namespace cc | 44 } // namespace cc |
| 46 | 45 |
| 47 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ | 46 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ |
| OLD | NEW |