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

Side by Side Diff: tools/viewer/sk_app/DisplayParams.h

Issue 2072813002: Revert of Lots of progress switching to SkColorSpace rather than SkColorProfileType (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « tools/viewer/Viewer.cpp ('k') | tools/viewer/sk_app/GLWindowContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #ifndef DisplayParams_DEFINED 7 #ifndef DisplayParams_DEFINED
8 #define DisplayParams_DEFINED 8 #define DisplayParams_DEFINED
9 9
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
11 11
12 namespace sk_app { 12 namespace sk_app {
13 13
14 struct DisplayParams { 14 struct DisplayParams {
15 DisplayParams() 15 DisplayParams()
16 : fColorType(kN32_SkColorType) 16 : fColorType(kN32_SkColorType)
17 , fColorSpace(nullptr) 17 , fProfileType(kLinear_SkColorProfileType)
18 , fMSAASampleCount(0) 18 , fMSAASampleCount(0)
19 , fDeepColor(false) {} 19 , fDeepColor(false) {}
20 20
21 SkColorType fColorType; 21 SkColorType fColorType;
22 sk_sp<SkColorSpace> fColorSpace; 22 SkColorProfileType fProfileType;
23 int fMSAASampleCount; 23 int fMSAASampleCount;
24 bool fDeepColor; 24 bool fDeepColor;
25 }; 25 };
26 26
27 } // namespace sk_app 27 } // namespace sk_app
28 28
29 #endif 29 #endif
OLDNEW
« no previous file with comments | « tools/viewer/Viewer.cpp ('k') | tools/viewer/sk_app/GLWindowContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698