Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: cc/playback/display_item_list.h

Issue 2496283004: cc: Build Image to Region map during image meta-data generation. (Closed)
Patch Set: Fix Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/playback/discardable_image_map_unittest.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
160 161
161 void SetRetainVisualRectsForTesting(bool retain) { 162 void SetRetainVisualRectsForTesting(bool retain) {
162 retain_visual_rects_ = retain; 163 retain_visual_rects_ = retain;
163 } 164 }
164 165
165 size_t size() const { return inputs_.items.size(); } 166 size_t size() const { return inputs_.items.size(); }
166 167
167 gfx::Rect VisualRectForTesting(int index) { 168 gfx::Rect VisualRectForTesting(int index) {
168 return inputs_.visual_rects[index]; 169 return inputs_.visual_rects[index];
169 } 170 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 Inputs inputs_; 222 Inputs inputs_;
222 223
223 friend class base::RefCountedThreadSafe<DisplayItemList>; 224 friend class base::RefCountedThreadSafe<DisplayItemList>;
224 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); 225 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage);
225 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); 226 DISALLOW_COPY_AND_ASSIGN(DisplayItemList);
226 }; 227 };
227 228
228 } // namespace cc 229 } // namespace cc
229 230
230 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_ 231 #endif // CC_PLAYBACK_DISPLAY_ITEM_LIST_H_
OLDNEW
« no previous file with comments | « cc/playback/discardable_image_map_unittest.cc ('k') | cc/playback/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698