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

Side by Side 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 unified diff | Download patch
« ui/gfx/color_space.h ('K') | « ui/gfx/color_space.h ('k') | no next file » | 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 #include "ui/gfx/color_space.h" 5 #include "ui/gfx/color_space.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 13
14 ColorSpace::ColorSpace() = default; 14 ColorSpace::ColorSpace() = default;
15 15
16 // static
17 ColorSpace ColorSpace::CreateSRGB() {
18 return gfx::ColorSpace();
hubbe 2016/07/21 22:12:34 Add TODOs?
19 }
20
21 // static
22 ColorSpace ColorSpace::CreateJpeg() {
23 return gfx::ColorSpace();
24 }
25
26 // static
27 ColorSpace ColorSpace::CreateREC601() {
28 return gfx::ColorSpace();
29 }
30
31 // static
32 ColorSpace ColorSpace::CreateREC709() {
33 return gfx::ColorSpace();
34 }
35
16 bool ColorSpace::operator==(const ColorSpace& other) const { 36 bool ColorSpace::operator==(const ColorSpace& other) const {
17 return valid_ == other.valid_ && 37 return valid_ == other.valid_ &&
18 transfer_function_ == other.transfer_function_ && 38 transfer_function_ == other.transfer_function_ &&
19 !memcmp(xyz_d50_matrix_, other.xyz_d50_matrix_, 39 !memcmp(xyz_d50_matrix_, other.xyz_d50_matrix_,
20 sizeof(xyz_d50_matrix_)); 40 sizeof(xyz_d50_matrix_));
21 } 41 }
22 42
23 } // namespace gfx 43 } // namespace gfx
OLDNEW
« 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