| 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_LIST_H_ | 5 #ifndef CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| 6 #define CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 6 #define CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // applicable, create an internally cached SkPicture. | 91 // applicable, create an internally cached SkPicture. |
| 92 void Finalize(); | 92 void Finalize(); |
| 93 | 93 |
| 94 bool IsSuitableForGpuRasterization() const; | 94 bool IsSuitableForGpuRasterization() const; |
| 95 int ApproximateOpCount() const; | 95 int ApproximateOpCount() const; |
| 96 size_t ApproximateMemoryUsage() const; | 96 size_t ApproximateMemoryUsage() const; |
| 97 bool ShouldBeAnalyzedForSolidColor() const; | 97 bool ShouldBeAnalyzedForSolidColor() const; |
| 98 | 98 |
| 99 bool RetainsIndividualDisplayItems() const; | 99 bool RetainsIndividualDisplayItems() const; |
| 100 | 100 |
| 101 scoped_refptr<base::trace_event::ConvertableToTraceFormat> AsValue( | 101 scoped_ptr<base::trace_event::ConvertableToTraceFormat> AsValue( |
| 102 bool include_items) const; | 102 bool include_items) const; |
| 103 | 103 |
| 104 void EmitTraceSnapshot() const; | 104 void EmitTraceSnapshot() const; |
| 105 | 105 |
| 106 void GenerateDiscardableImagesMetadata(); | 106 void GenerateDiscardableImagesMetadata(); |
| 107 void GetDiscardableImagesInRect(const gfx::Rect& rect, | 107 void GetDiscardableImagesInRect(const gfx::Rect& rect, |
| 108 float raster_scale, | 108 float raster_scale, |
| 109 std::vector<DrawImage>* images); | 109 std::vector<DrawImage>* images); |
| 110 bool MayHaveDiscardableImages() const; | 110 bool MayHaveDiscardableImages() const; |
| 111 | 111 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DiscardableImageMap image_map_; | 145 DiscardableImageMap image_map_; |
| 146 | 146 |
| 147 friend class base::RefCountedThreadSafe<DisplayItemList>; | 147 friend class base::RefCountedThreadSafe<DisplayItemList>; |
| 148 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); | 148 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); |
| 149 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); | 149 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 } // namespace cc | 152 } // namespace cc |
| 153 | 153 |
| 154 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 154 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| OLD | NEW |