| 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 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 150 |
| 151 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue( | 151 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> AsValue( |
| 152 bool include_items) const; | 152 bool include_items) const; |
| 153 | 153 |
| 154 void EmitTraceSnapshot() const; | 154 void EmitTraceSnapshot() const; |
| 155 | 155 |
| 156 void GenerateDiscardableImagesMetadata(); | 156 void GenerateDiscardableImagesMetadata(); |
| 157 void GetDiscardableImagesInRect(const gfx::Rect& rect, | 157 void GetDiscardableImagesInRect(const gfx::Rect& rect, |
| 158 const gfx::SizeF& raster_scales, | 158 const gfx::SizeF& raster_scales, |
| 159 std::vector<DrawImage>* images); | 159 std::vector<DrawImage>* images); |
| 160 Region GetRegionForImage(uint32_t image_id); | |
| 161 | 160 |
| 162 void SetRetainVisualRectsForTesting(bool retain) { | 161 void SetRetainVisualRectsForTesting(bool retain) { |
| 163 retain_visual_rects_ = retain; | 162 retain_visual_rects_ = retain; |
| 164 } | 163 } |
| 165 | 164 |
| 166 size_t size() const { return inputs_.items.size(); } | 165 size_t size() const { return inputs_.items.size(); } |
| 167 | 166 |
| 168 gfx::Rect VisualRectForTesting(int index) { | 167 gfx::Rect VisualRectForTesting(int index) { |
| 169 return inputs_.visual_rects[index]; | 168 return inputs_.visual_rects[index]; |
| 170 } | 169 } |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 Inputs inputs_; | 221 Inputs inputs_; |
| 223 | 222 |
| 224 friend class base::RefCountedThreadSafe<DisplayItemList>; | 223 friend class base::RefCountedThreadSafe<DisplayItemList>; |
| 225 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); | 224 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); |
| 226 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); | 225 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); |
| 227 }; | 226 }; |
| 228 | 227 |
| 229 } // namespace cc | 228 } // namespace cc |
| 230 | 229 |
| 231 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ | 230 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ |
| OLD | NEW |