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

Side by Side Diff: include/core/SkPostConfig.h

Issue 2198073002: Default fake gamma to sRGB. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up 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 | « gyp/common_conditions.gypi ('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 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 7
8 // IWYU pragma: private, include "SkTypes.h" 8 // IWYU pragma: private, include "SkTypes.h"
9 9
10 #ifndef SkPostConfig_DEFINED 10 #ifndef SkPostConfig_DEFINED
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #ifndef SK_EGL 311 #ifndef SK_EGL
312 # if defined(SK_BUILD_FOR_ANDROID) 312 # if defined(SK_BUILD_FOR_ANDROID)
313 # define SK_EGL 1 313 # define SK_EGL 1
314 # else 314 # else
315 # define SK_EGL 0 315 # define SK_EGL 0
316 # endif 316 # endif
317 #endif 317 #endif
318 318
319 ////////////////////////////////////////////////////////////////////// 319 //////////////////////////////////////////////////////////////////////
320 320
321 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 321 #if !defined(SK_GAMMA_EXPONENT)
322 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 322 #define SK_GAMMA_EXPONENT (0.0f) // SRGB
bungeman-skia 2016/08/01 15:17:22 nit: the hash is indented, while the rest of the f
323 #elif defined(SK_GAMMA_SRGB)
324 # define SK_GAMMA_EXPONENT (0.0f)
325 #elif !defined(SK_GAMMA_EXPONENT)
326 # define SK_GAMMA_EXPONENT (2.2f)
327 #endif 323 #endif
328 324
329 ////////////////////////////////////////////////////////////////////// 325 //////////////////////////////////////////////////////////////////////
330 326
331 #ifndef GR_TEST_UTILS 327 #ifndef GR_TEST_UTILS
332 # define GR_TEST_UTILS 1 328 # define GR_TEST_UTILS 1
333 #endif 329 #endif
334 330
335 ////////////////////////////////////////////////////////////////////// 331 //////////////////////////////////////////////////////////////////////
336 332
337 #if defined(SK_HISTOGRAM_ENUMERATION) && defined(SK_HISTOGRAM_BOOLEAN) 333 #if defined(SK_HISTOGRAM_ENUMERATION) && defined(SK_HISTOGRAM_BOOLEAN)
338 # define SK_HISTOGRAMS_ENABLED 1 334 # define SK_HISTOGRAMS_ENABLED 1
339 #else 335 #else
340 # define SK_HISTOGRAMS_ENABLED 0 336 # define SK_HISTOGRAMS_ENABLED 0
341 #endif 337 #endif
342 338
343 #ifndef SK_HISTOGRAM_BOOLEAN 339 #ifndef SK_HISTOGRAM_BOOLEAN
344 # define SK_HISTOGRAM_BOOLEAN(name, value) 340 # define SK_HISTOGRAM_BOOLEAN(name, value)
345 #endif 341 #endif
346 342
347 #ifndef SK_HISTOGRAM_ENUMERATION 343 #ifndef SK_HISTOGRAM_ENUMERATION
348 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value) 344 # define SK_HISTOGRAM_ENUMERATION(name, value, boundary_value)
349 #endif 345 #endif
350 346
351 #endif // SkPostConfig_DEFINED 347 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « gyp/common_conditions.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698