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_FILTER_DISPLAY_ITEM_H_ | 5 #ifndef CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ |
6 #define CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ | 6 #define CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ImageSerializationProcessor* image_serialization_processor) | 59 ImageSerializationProcessor* image_serialization_processor) |
60 const override; | 60 const override; |
61 void Raster(SkCanvas* canvas, | 61 void Raster(SkCanvas* canvas, |
62 const gfx::Rect& canvas_target_playback_rect, | 62 const gfx::Rect& canvas_target_playback_rect, |
63 SkPicture::AbortCallback* callback) const override; | 63 SkPicture::AbortCallback* callback) const override; |
64 void AsValueInto(const gfx::Rect& visual_rect, | 64 void AsValueInto(const gfx::Rect& visual_rect, |
65 base::trace_event::TracedValue* array) const override; | 65 base::trace_event::TracedValue* array) const override; |
66 size_t ExternalMemoryUsage() const override; | 66 size_t ExternalMemoryUsage() const override; |
67 | 67 |
68 int ApproximateOpCount() const { return 0; } | 68 int ApproximateOpCount() const { return 0; } |
69 bool IsSuitableForGpuRasterization() const { return true; } | |
70 }; | 69 }; |
71 | 70 |
72 } // namespace cc | 71 } // namespace cc |
73 | 72 |
74 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ | 73 #endif // CC_PLAYBACK_FILTER_DISPLAY_ITEM_H_ |
OLD | NEW |