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

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

Issue 604853003: Add support for EGL on linux (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/gpu.gypi ('k') | include/gpu/gl/SkNativeGLContext.h » ('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 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 #ifndef SkPostConfig_DEFINED 8 #ifndef SkPostConfig_DEFINED
9 #define SkPostConfig_DEFINED 9 #define SkPostConfig_DEFINED
10 10
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 #ifndef SK_BARRIERS_PLATFORM_H 404 #ifndef SK_BARRIERS_PLATFORM_H
405 # if SK_HAS_COMPILER_FEATURE(thread_sanitizer) 405 # if SK_HAS_COMPILER_FEATURE(thread_sanitizer)
406 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_tsan.h" 406 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_tsan.h"
407 # elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64) 407 # elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64)
408 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_arm.h" 408 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_arm.h"
409 # else 409 # else
410 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_x86.h" 410 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_x86.h"
411 # endif 411 # endif
412 #endif 412 #endif
413 413
414 //////////////////////////////////////////////////////////////////////
415
416 #ifndef SK_EGL
417 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
418 # define SK_EGL 1
419 # else
420 # define SK_EGL 0
421 # endif
422 #endif
414 423
415 ////////////////////////////////////////////////////////////////////// 424 //////////////////////////////////////////////////////////////////////
416 425
417 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 426 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB)
418 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 427 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB"
419 #elif defined(SK_GAMMA_SRGB) 428 #elif defined(SK_GAMMA_SRGB)
420 # define SK_GAMMA_EXPONENT (0.0f) 429 # define SK_GAMMA_EXPONENT (0.0f)
421 #elif !defined(SK_GAMMA_EXPONENT) 430 #elif !defined(SK_GAMMA_EXPONENT)
422 # define SK_GAMMA_EXPONENT (2.2f) 431 # define SK_GAMMA_EXPONENT (2.2f)
423 #endif 432 #endif
424 433
425 #endif // SkPostConfig_DEFINED 434 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/gl/SkNativeGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698