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

Unified Diff: ui/gfx/color_space.cc

Issue 2169913003: Video: Plumb media::VideoFrame color space to cc and GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static ctors 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
« ui/gfx/color_space.h ('K') | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_space.cc
diff --git a/ui/gfx/color_space.cc b/ui/gfx/color_space.cc
index 0c622be5b9d335d51e821a52fff7dd857f23ea97..b05940c09201b8bceba00300f8dc5340844e524c 100644
--- a/ui/gfx/color_space.cc
+++ b/ui/gfx/color_space.cc
@@ -13,6 +13,26 @@ namespace gfx {
ColorSpace::ColorSpace() = default;
+// static
+ColorSpace ColorSpace::CreateSRGB() {
+ return gfx::ColorSpace();
hubbe 2016/07/21 22:12:34 Add TODOs?
+}
+
+// static
+ColorSpace ColorSpace::CreateJpeg() {
+ return gfx::ColorSpace();
+}
+
+// static
+ColorSpace ColorSpace::CreateREC601() {
+ return gfx::ColorSpace();
+}
+
+// static
+ColorSpace ColorSpace::CreateREC709() {
+ return gfx::ColorSpace();
+}
+
bool ColorSpace::operator==(const ColorSpace& other) const {
return valid_ == other.valid_ &&
transfer_function_ == other.transfer_function_ &&
« ui/gfx/color_space.h ('K') | « ui/gfx/color_space.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698