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

Side by Side Diff: ui/gfx/color_space.h

Issue 2088273003: Video Color Managament (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: log color space 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 unified diff | Download patch
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool.cc ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_COLOR_SPACE_H_ 5 #ifndef UI_GFX_COLOR_SPACE_H_
6 #define UI_GFX_COLOR_SPACE_H_ 6 #define UI_GFX_COLOR_SPACE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 static ColorSpace CreateSRGB(); 117 static ColorSpace CreateSRGB();
118 static ColorSpace CreateXYZD50(); 118 static ColorSpace CreateXYZD50();
119 119
120 // TODO: Remove these, and replace with more generic constructors. 120 // TODO: Remove these, and replace with more generic constructors.
121 static ColorSpace CreateJpeg(); 121 static ColorSpace CreateJpeg();
122 static ColorSpace CreateREC601(); 122 static ColorSpace CreateREC601();
123 static ColorSpace CreateREC709(); 123 static ColorSpace CreateREC709();
124 124
125 bool operator==(const ColorSpace& other) const; 125 bool operator==(const ColorSpace& other) const;
126 bool operator<(const ColorSpace& other) const;
126 127
127 private: 128 private:
128 PrimaryID primaries_; 129 PrimaryID primaries_;
129 TransferID transfer_; 130 TransferID transfer_;
130 MatrixID matrix_; 131 MatrixID matrix_;
131 RangeID range_; 132 RangeID range_;
132 133
133 // This is used to look up the ICCProfile from which this ColorSpace was 134 // This is used to look up the ICCProfile from which this ColorSpace was
134 // created, if possible. 135 // created, if possible.
135 uint64_t icc_profile_id_ = 0; 136 uint64_t icc_profile_id_ = 0;
136 137
137 friend class ICCProfile; 138 friend class ICCProfile;
138 friend class ColorSpaceToColorSpaceTransform; 139 friend class ColorSpaceToColorSpaceTransform;
139 friend struct IPC::ParamTraits<gfx::ColorSpace>; 140 friend struct IPC::ParamTraits<gfx::ColorSpace>;
140 }; 141 };
141 142
142 } // namespace gfx 143 } // namespace gfx
143 144
144 #endif // UI_GFX_COLOR_SPACE_H_ 145 #endif // UI_GFX_COLOR_SPACE_H_
OLDNEW
« no previous file with comments | « media/video/gpu_memory_buffer_video_frame_pool.cc ('k') | ui/gfx/color_space.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698