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

Unified Diff: cc/resources/resource_provider.h

Issue 2228693002: Color: Add cc accessors and unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index ff7970bc5b04097ebdbc30e58033df07c19a66ae..0207d87d90a617b4a66f306637c7c4953aaf1bad 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -224,6 +224,7 @@ class CC_EXPORT ResourceProvider
unsigned texture_id() const { return texture_id_; }
GLenum target() const { return target_; }
const gfx::Size& size() const { return size_; }
+ const gfx::ColorSpace& color_space() const { return color_space_; }
private:
ResourceProvider* resource_provider_;
@@ -231,6 +232,7 @@ class CC_EXPORT ResourceProvider
unsigned texture_id_;
GLenum target_;
gfx::Size size_;
+ gfx::ColorSpace color_space_;
DISALLOW_COPY_AND_ASSIGN(ScopedReadLockGL);
};
@@ -248,6 +250,9 @@ class CC_EXPORT ResourceProvider
unsigned texture_id() const { return resource_lock_.texture_id(); }
GLenum target() const { return target_; }
+ const gfx::ColorSpace& color_space() const {
+ return resource_lock_.color_space();
+ }
private:
ScopedReadLockGL resource_lock_;
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698