OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 # This gypi file handles the removal of platform-specific files from the | 5 # This gypi file handles the removal of platform-specific files from the |
6 # Skia build. | 6 # Skia build. |
7 { | 7 { |
8 'include_dirs': [ | 8 'include_dirs': [ |
9 '..', | 9 '..', |
10 'config', | 10 'config', |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 }], | 58 }], |
59 [ 'use_cairo == 0', { | 59 [ 'use_cairo == 0', { |
60 'sources/': [ ['exclude', '_cairo\\.(cc|cpp)$'] ], | 60 'sources/': [ ['exclude', '_cairo\\.(cc|cpp)$'] ], |
61 }], | 61 }], |
62 | 62 |
63 #Settings for text blitting, chosen to approximate the system browser. | 63 #Settings for text blitting, chosen to approximate the system browser. |
64 [ 'OS == "linux"', { | 64 [ 'OS == "linux"', { |
65 'defines': [ | 65 'defines': [ |
66 'SK_GAMMA_EXPONENT=1.2', | 66 'SK_GAMMA_EXPONENT=1.2', |
67 'SK_GAMMA_CONTRAST=0.2', | 67 'SK_GAMMA_CONTRAST=0.2', |
| 68 'SK_HIGH_QUALITY_IS_LANCZOS', |
68 ], | 69 ], |
69 }], | 70 }], |
70 ['OS == "android"', { | 71 ['OS == "android"', { |
71 'defines': [ | 72 'defines': [ |
72 'SK_GAMMA_APPLY_TO_A8', | 73 'SK_GAMMA_APPLY_TO_A8', |
73 'SK_GAMMA_EXPONENT=1.4', | 74 'SK_GAMMA_EXPONENT=1.4', |
74 'SK_GAMMA_CONTRAST=0.0', | 75 'SK_GAMMA_CONTRAST=0.0', |
75 ], | 76 ], |
76 }], | 77 }], |
77 ['OS == "win"', { | 78 ['OS == "win"', { |
78 'defines': [ | 79 'defines': [ |
79 'SK_GAMMA_SRGB', | 80 'SK_GAMMA_SRGB', |
80 'SK_GAMMA_CONTRAST=0.5', | 81 'SK_GAMMA_CONTRAST=0.5', |
| 82 'SK_HIGH_QUALITY_IS_LANCZOS', |
81 ], | 83 ], |
82 }], | 84 }], |
83 ['OS == "mac"', { | 85 ['OS == "mac"', { |
84 'defines': [ | 86 'defines': [ |
85 'SK_GAMMA_SRGB', | 87 'SK_GAMMA_SRGB', |
86 'SK_GAMMA_CONTRAST=0.0', | 88 'SK_GAMMA_CONTRAST=0.0', |
| 89 'SK_HIGH_QUALITY_IS_LANCZOS', |
87 ], | 90 ], |
88 }], | 91 }], |
89 | 92 |
90 # For POSIX platforms, prefer the Mutex implementation provided by Skia | 93 # For POSIX platforms, prefer the Mutex implementation provided by Skia |
91 # since it does not generate static initializers. | 94 # since it does not generate static initializers. |
92 [ 'os_posix == 1', { | 95 [ 'os_posix == 1', { |
93 'defines+': [ | 96 'defines+': [ |
94 'SK_USE_POSIX_THREADS', | 97 'SK_USE_POSIX_THREADS', |
95 ], | 98 ], |
96 'direct_dependent_settings': { | 99 'direct_dependent_settings': { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 # re-export if they include Skia headers in their public headers. | 206 # re-export if they include Skia headers in their public headers. |
204 'all_dependent_settings': { | 207 'all_dependent_settings': { |
205 'include_dirs': [ | 208 'include_dirs': [ |
206 '..', | 209 '..', |
207 'config', | 210 'config', |
208 ], | 211 ], |
209 }, | 212 }, |
210 | 213 |
211 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], | 214 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], |
212 } | 215 } |
OLD | NEW |