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

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

Issue 2866173002: [WIP] cc: Use sRGB for rastering non-wide-color-gamut content
Patch Set: Created 3 years, 7 months 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
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_PAINT_DISPLAY_ITEM_LIST_H_ 5 #ifndef CC_PAINT_DISPLAY_ITEM_LIST_H_
6 #define CC_PAINT_DISPLAY_ITEM_LIST_H_ 6 #define CC_PAINT_DISPLAY_ITEM_LIST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void Finalize(); 131 void Finalize();
132 132
133 void SetIsSuitableForGpuRasterization(bool is_suitable) { 133 void SetIsSuitableForGpuRasterization(bool is_suitable) {
134 all_items_are_suitable_for_gpu_rasterization_ = is_suitable; 134 all_items_are_suitable_for_gpu_rasterization_ = is_suitable;
135 } 135 }
136 bool IsSuitableForGpuRasterization() const; 136 bool IsSuitableForGpuRasterization() const;
137 137
138 int ApproximateOpCount() const; 138 int ApproximateOpCount() const;
139 size_t ApproximateMemoryUsage() const; 139 size_t ApproximateMemoryUsage() const;
140 bool ShouldBeAnalyzedForSolidColor() const; 140 bool ShouldBeAnalyzedForSolidColor() const;
141 bool HasNonSRGBContent() const;
141 142
142 void EmitTraceSnapshot() const; 143 void EmitTraceSnapshot() const;
143 144
144 void GenerateDiscardableImagesMetadata(); 145 void GenerateDiscardableImagesMetadata();
145 void GetDiscardableImagesInRect(const gfx::Rect& rect, 146 void GetDiscardableImagesInRect(const gfx::Rect& rect,
146 float contents_scale, 147 float contents_scale,
147 const gfx::ColorSpace& target_color_space, 148 const gfx::ColorSpace& target_color_space,
148 std::vector<DrawImage>* images); 149 std::vector<DrawImage>* images);
149 gfx::Rect GetRectForImage(ImageId image_id) const; 150 gfx::Rect GetRectForImage(ImageId image_id) const;
150 151
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool has_discardable_images_ = false; 213 bool has_discardable_images_ = false;
213 214
214 friend class base::RefCountedThreadSafe<DisplayItemList>; 215 friend class base::RefCountedThreadSafe<DisplayItemList>;
215 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage); 216 FRIEND_TEST_ALL_PREFIXES(DisplayItemListTest, ApproximateMemoryUsage);
216 DISALLOW_COPY_AND_ASSIGN(DisplayItemList); 217 DISALLOW_COPY_AND_ASSIGN(DisplayItemList);
217 }; 218 };
218 219
219 } // namespace cc 220 } // namespace cc
220 221
221 #endif // CC_PAINT_DISPLAY_ITEM_LIST_H_ 222 #endif // CC_PAINT_DISPLAY_ITEM_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698