OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 enable_printing = true # TODO(brettw) pass this feature flag in somehow. | 5 enable_printing = true # TODO(brettw) pass this feature flag in somehow. |
6 skia_support_gpu = !is_ios | 6 skia_support_gpu = !is_ios |
7 skia_support_pdf = !is_ios && enable_printing | 7 skia_support_pdf = !is_ios && enable_printing |
8 | 8 |
9 # External-facing config for dependent code. | 9 # External-facing config for dependent code. |
10 config("skia_config") { | 10 config("skia_config") { |
(...skipping 22 matching lines...) Expand all Loading... |
33 "GR_GL_CUSTOM_SETUP_HEADER=\"GrGLConfig_chrome.h\"", | 33 "GR_GL_CUSTOM_SETUP_HEADER=\"GrGLConfig_chrome.h\"", |
34 ] | 34 ] |
35 | 35 |
36 if (skia_support_gpu) { | 36 if (skia_support_gpu) { |
37 include_dirs += [ | 37 include_dirs += [ |
38 "//third_party/skia/include/gpu", | 38 "//third_party/skia/include/gpu", |
39 "//third_party/skia/src/gpu", | 39 "//third_party/skia/src/gpu", |
40 ] | 40 ] |
41 defines += "SK_SUPPORT_GPU=1" | 41 defines += "SK_SUPPORT_GPU=1" |
42 } else { | 42 } else { |
43 defines = "SK_SUPPORT_GPU=0" | 43 defines += "SK_SUPPORT_GPU=0" |
44 } | 44 } |
45 | 45 |
46 # For POSIX platforms, prefer the Mutex implementation provided by Skia | 46 # For POSIX platforms, prefer the Mutex implementation provided by Skia |
47 # since it does not generate static initializers. | 47 # since it does not generate static initializers. |
48 if (is_posix) { | 48 if (is_posix) { |
49 defines += "SK_USE_POSIX_THREADS" | 49 defines += "SK_USE_POSIX_THREADS" |
50 } | 50 } |
51 | 51 |
52 if (is_android) { | 52 if (is_android) { |
53 defines += [ | 53 defines += [ |
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 ":skia_config", | 1333 ":skia_config", |
1334 "//build/config/compiler:no_chromium_code" | 1334 "//build/config/compiler:no_chromium_code" |
1335 ] | 1335 ] |
1336 | 1336 |
1337 if (is_linux) { | 1337 if (is_linux) { |
1338 cflags = [ "-msse3" ] | 1338 cflags = [ "-msse3" ] |
1339 } else if (is_mac) { | 1339 } else if (is_mac) { |
1340 cflags = [ "-mssse3" ] # Note the third 's'. | 1340 cflags = [ "-mssse3" ] # Note the third 's'. |
1341 } | 1341 } |
1342 } | 1342 } |
OLD | NEW |