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

Unified Diff: ui/gfx/color_space.h

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
Index: ui/gfx/color_space.h
diff --git a/ui/gfx/color_space.h b/ui/gfx/color_space.h
index ef8c6405f3ae852101b587eecd49ed0fae0e2ebb..0f7a8355933936554568bcaa6cee548ff017385d 100644
--- a/ui/gfx/color_space.h
+++ b/ui/gfx/color_space.h
@@ -26,6 +26,13 @@ enum class ColorTransferFunction { UNSUPPORTED, LAST = UNSUPPORTED };
class GFX_EXPORT ColorSpace {
public:
ColorSpace();
+ static ColorSpace CreateSRGB();
+
+ // TODO: Remove these, and replace with more generic constructors.
ccameron 2016/07/21 22:07:03 This sort-of helps me with some of my hacking/plum
hubbe 2016/07/21 22:12:35 Sure.
+ static ColorSpace CreateJpeg();
+ static ColorSpace CreateREC601();
+ static ColorSpace CreateREC709();
+
bool operator==(const ColorSpace& other) const;
private:

Powered by Google App Engine
This is Rietveld 408576698