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

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

Issue 862983002: Move sync code to include/, switch from using platform define to a proxy header in core/ (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 5 years, 11 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 | « include/core/SkMutex.h ('k') | include/core/SkThread.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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 #endif 378 #endif
379 379
380 ////////////////////////////////////////////////////////////////////// 380 //////////////////////////////////////////////////////////////////////
381 381
382 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 382 #ifndef SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
383 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1 383 # define SK_ALLOW_STATIC_GLOBAL_INITIALIZERS 1
384 #endif 384 #endif
385 385
386 ////////////////////////////////////////////////////////////////////// 386 //////////////////////////////////////////////////////////////////////
387 387
388 #ifndef SK_ATOMICS_PLATFORM_H
389 # if defined(_MSC_VER)
390 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_win.h"
391 # else
392 # define SK_ATOMICS_PLATFORM_H "../../src/ports/SkAtomics_sync.h"
393 # endif
394 #endif
395
396 #ifndef SK_MUTEX_PLATFORM_H
397 # if defined(SK_BUILD_FOR_WIN)
398 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_win.h"
399 # else
400 # define SK_MUTEX_PLATFORM_H "../../src/ports/SkMutex_pthread.h"
401 # endif
402 #endif
403
404 #ifndef SK_BARRIERS_PLATFORM_H
405 # if SK_HAS_COMPILER_FEATURE(thread_sanitizer)
406 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_tsan.h"
407 # elif defined(SK_CPU_ARM32) || defined(SK_CPU_ARM64)
408 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_arm.h"
409 # else
410 # define SK_BARRIERS_PLATFORM_H "../../src/ports/SkBarriers_x86.h"
411 # endif
412 #endif
413
414 //////////////////////////////////////////////////////////////////////
415
416 #ifndef SK_EGL 388 #ifndef SK_EGL
417 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) 389 # if defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
418 # define SK_EGL 1 390 # define SK_EGL 1
419 # else 391 # else
420 # define SK_EGL 0 392 # define SK_EGL 0
421 # endif 393 # endif
422 #endif 394 #endif
423 395
424 ////////////////////////////////////////////////////////////////////// 396 //////////////////////////////////////////////////////////////////////
425 397
426 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB) 398 #if defined(SK_GAMMA_EXPONENT) && defined(SK_GAMMA_SRGB)
427 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB" 399 # error "cannot define both SK_GAMMA_EXPONENT and SK_GAMMA_SRGB"
428 #elif defined(SK_GAMMA_SRGB) 400 #elif defined(SK_GAMMA_SRGB)
429 # define SK_GAMMA_EXPONENT (0.0f) 401 # define SK_GAMMA_EXPONENT (0.0f)
430 #elif !defined(SK_GAMMA_EXPONENT) 402 #elif !defined(SK_GAMMA_EXPONENT)
431 # define SK_GAMMA_EXPONENT (2.2f) 403 # define SK_GAMMA_EXPONENT (2.2f)
432 #endif 404 #endif
433 405
434 #endif // SkPostConfig_DEFINED 406 #endif // SkPostConfig_DEFINED
OLDNEW
« no previous file with comments | « include/core/SkMutex.h ('k') | include/core/SkThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698