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

Unified Diff: cc/output/output_surface.h

Issue 2235623003: cc: Add gfx::ColorSpace to cc::ResourceProvider resource creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 2b5708481f6721c1b2d6ca4354c62173a770cfd3..87b03a37fb98ca1a067208ceaa4b8c440373a59f 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -129,7 +129,9 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
bool alpha);
gfx::Size SurfaceSize() const { return surface_size_; }
float device_scale_factor() const { return device_scale_factor_; }
- const gfx::ColorSpace& color_space() const { return color_space_; }
+ const gfx::ColorSpace& device_color_space() const {
+ return device_color_space_;
+ }
// If supported, this causes a ReclaimResources for all resources that are
// currently in use.
@@ -196,6 +198,7 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider {
std::unique_ptr<SoftwareOutputDevice> software_device_;
gfx::Size surface_size_;
float device_scale_factor_ = -1;
+ gfx::ColorSpace device_color_space_;
bool has_alpha_ = true;
gfx::ColorSpace color_space_;
base::ThreadChecker client_thread_checker_;
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698