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

Unified Diff: cc/playback/display_item_list.h

Issue 2525453002: Raster: Allow a RasterSource to specify its color space (Closed)
Patch Set: Only set implied space when color correct rendering is disabled Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/playback/raster_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/display_item_list.h
diff --git a/cc/playback/display_item_list.h b/cc/playback/display_item_list.h
index 3f24fe319b6d1ba5b4d19f0cf36df143900938bf..2a1c1d122c91d8c76b61738d61ff3c37e4f48fbe 100644
--- a/cc/playback/display_item_list.h
+++ b/cc/playback/display_item_list.h
@@ -21,6 +21,7 @@
#include "cc/playback/display_item.h"
#include "cc/playback/display_item_list_settings.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
@@ -142,6 +143,18 @@ class CC_EXPORT DisplayItemList
inputs_.all_items_are_suitable_for_gpu_rasterization = is_suitable;
}
bool IsSuitableForGpuRasterization() const;
+
+ void SetImpliedColorSpace(const gfx::ColorSpace& implied_color_space) {
+ inputs_.implied_color_space_specified = true;
+ inputs_.implied_color_space = implied_color_space;
+ }
+ bool HasImpliedColorSpace() const {
+ return inputs_.implied_color_space_specified;
+ }
+ const gfx::ColorSpace& GetImpliedColorSpace() const {
+ return inputs_.implied_color_space;
+ }
+
int ApproximateOpCount() const;
size_t ApproximateMemoryUsage() const;
bool ShouldBeAnalyzedForSolidColor() const;
@@ -215,6 +228,8 @@ class CC_EXPORT DisplayItemList
std::vector<size_t> begin_item_indices;
const DisplayItemListSettings settings;
bool all_items_are_suitable_for_gpu_rasterization = true;
+ bool implied_color_space_specified = false;
+ gfx::ColorSpace implied_color_space;
};
Inputs inputs_;
« no previous file with comments | « cc/blink/web_display_item_list_impl.cc ('k') | cc/playback/raster_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698