| 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 22 matching lines...) Expand all Loading... |
| 33 FLOAT_CLIP, | 33 FLOAT_CLIP, |
| 34 END_FLOAT_CLIP, | 34 END_FLOAT_CLIP, |
| 35 TRANSFORM, | 35 TRANSFORM, |
| 36 END_TRANSFORM, | 36 END_TRANSFORM, |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 virtual ~DisplayItem() {} | 39 virtual ~DisplayItem() {} |
| 40 | 40 |
| 41 virtual void Raster(SkCanvas* canvas, | 41 virtual void Raster(SkCanvas* canvas, |
| 42 SkPicture::AbortCallback* callback) const = 0; | 42 SkPicture::AbortCallback* callback) const = 0; |
| 43 virtual void AsValueInto(const gfx::Rect& visual_rect, | |
| 44 base::trace_event::TracedValue* array) const = 0; | |
| 45 | 43 |
| 46 Type type() const { return type_; } | 44 Type type() const { return type_; } |
| 47 | 45 |
| 48 protected: | 46 protected: |
| 49 explicit DisplayItem(Type type) : type_(type) {} | 47 explicit DisplayItem(Type type) : type_(type) {} |
| 50 | 48 |
| 51 const Type type_; | 49 const Type type_; |
| 52 }; | 50 }; |
| 53 | 51 |
| 54 } // namespace cc | 52 } // namespace cc |
| 55 | 53 |
| 56 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ | 54 #endif // CC_PLAYBACK_DISPLAY_ITEM_H_ |
| OLD | NEW |