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

Side by Side Diff: include/private/SkImageInfoPriv.h

Issue 1893203006: Make all the codecs default profiles based on gDefaultProfileIsSRGB. (Closed) Base URL: https://skia.googlesource.com/skia.git@add-imageinfo-to-SkImage_Base
Patch Set: Make private work. Created 4 years, 8 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7 #ifndef SkImageInfoPriv_DEFINED
8 #define SkImageInfoPriv_DEFINED
9
10 #include "SkImageInfo.h"
11
12 // Indicate how images and gradients should interpret colors by default.
13 extern bool gDefaultProfileIsSRGB;
14
15 static SkColorProfileType SkDefaultColorProfile() {
16 return gDefaultProfileIsSRGB ? kSRGB_SkColorProfileType : kLinear_SkColorPro fileType;
17 }
18
19 #endif // SkImageInfoPriv_DEFINED
OLDNEW
« no previous file with comments | « include/codec/SkEncodedInfo.h ('k') | src/core/SkBitmap.cpp » ('j') | src/core/SkBitmap.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698