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

Unified Diff: cc/resources/texture_mailbox.h

Issue 2161293002: Color: Separate ICCProfile and ColorSpace structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporate review feedback Created 4 years, 5 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/resources/resource_provider.cc ('k') | cc/resources/transferable_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 8dcf98ed3802e0ade6468d5f95f3f99631a69fe5..4f8065d9de369070c61c07a93d2a6d9e66b91093 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -13,6 +13,7 @@
#include "base/memory/shared_memory.h"
#include "cc/base/cc_export.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
+#include "ui/gfx/color_space.h"
#include "ui/gfx/geometry/size.h"
namespace cc {
@@ -62,6 +63,10 @@ class CC_EXPORT TextureMailbox {
void set_nearest_neighbor(bool nearest_neighbor) {
nearest_neighbor_ = nearest_neighbor;
}
+ const gfx::ColorSpace& color_space() const { return color_space_; }
+ void set_color_space(const gfx::ColorSpace& color_space) {
+ color_space_ = color_space;
+ }
// This is valid if allow_overlau() or IsSharedMemory() is true.
gfx::Size size_in_pixels() const { return size_in_pixels_; }
@@ -76,6 +81,7 @@ class CC_EXPORT TextureMailbox {
bool is_overlay_candidate_;
bool secure_output_only_;
bool nearest_neighbor_;
+ gfx::ColorSpace color_space_;
};
} // namespace cc
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/transferable_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698