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

Side by Side Diff: skia/skia_common.gypi

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « skia/ext/event_tracer_impl.cc ('k') | skia/skia_test_expectations.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'includes': [ 8 'includes': [
9 # blink_skia_config.gypi defines blink_skia_defines 9 # blink_skia_config.gypi defines blink_skia_defines
10 '../third_party/WebKit/public/blink_skia_config.gypi', 10 '../third_party/WebKit/public/blink_skia_config.gypi',
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ], 86 ],
87 }], 87 }],
88 ['OS == "mac"', { 88 ['OS == "mac"', {
89 'defines': [ 89 'defines': [
90 'SK_GAMMA_SRGB', 90 'SK_GAMMA_SRGB',
91 'SK_GAMMA_CONTRAST=0.0', 91 'SK_GAMMA_CONTRAST=0.0',
92 'SK_HIGH_QUALITY_IS_LANCZOS', 92 'SK_HIGH_QUALITY_IS_LANCZOS',
93 ], 93 ],
94 }], 94 }],
95 95
96 # For POSIX platforms, prefer the Mutex implementation provided by Skia
97 # since it does not generate static initializers.
98 [ 'os_posix == 1', {
99 'defines+': [
100 'SK_USE_POSIX_THREADS',
101 ],
102 'direct_dependent_settings': {
103 'defines': [
104 'SK_USE_POSIX_THREADS',
105 ],
106 },
107 }],
108
109 # Neon support. 96 # Neon support.
110 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', { 97 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon == 1', {
111 'defines': [ 98 'defines': [
112 'SK_ARM_HAS_NEON', 99 'SK_ARM_HAS_NEON',
113 ], 100 ],
114 }], 101 }],
115 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon_optional == 1', { 102 [ 'target_arch == "arm" and arm_version >= 7 and arm_neon_optional == 1', {
116 'defines': [ 103 'defines': [
117 'SK_ARM_HAS_OPTIONAL_NEON', 104 'SK_ARM_HAS_OPTIONAL_NEON',
118 ], 105 ],
(...skipping 25 matching lines...) Expand all
144 'skia_support_gpu': '<(skia_support_gpu)', 131 'skia_support_gpu': '<(skia_support_gpu)',
145 'skia_support_pdf': '<(skia_support_pdf)', 132 'skia_support_pdf': '<(skia_support_pdf)',
146 133
147 # These two set the paths so we can include skia/gyp/core.gypi 134 # These two set the paths so we can include skia/gyp/core.gypi
148 'skia_src_path': '../third_party/skia/src', 135 'skia_src_path': '../third_party/skia/src',
149 'skia_include_path': '../third_party/skia/include', 136 'skia_include_path': '../third_party/skia/include',
150 137
151 # This list will contain all defines that also need to be exported to 138 # This list will contain all defines that also need to be exported to
152 # dependent components. 139 # dependent components.
153 'skia_export_defines': [ 140 'skia_export_defines': [
154 'SK_ENABLE_INST_COUNT=0',
155 'SK_SUPPORT_GPU=<(skia_support_gpu)', 141 'SK_SUPPORT_GPU=<(skia_support_gpu)',
156 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
157 'SK_ENABLE_LEGACY_API_ALIASING=1',
158 'SK_ATTR_DEPRECATED=SK_NOTHING_ARG1',
159 'GR_GL_IGNORE_ES3_MSAA=0',
160 'SK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT',
161 142
162 # This variable contains additional defines, specified in blink's 143 # This variable contains additional defines, specified in blink's
163 # blink_skia_config.gypi file. 144 # blink_skia_config.gypi file.
164 '<@(blink_skia_defines)', 145 '<@(blink_skia_defines)',
165 146
166 # This variable contains additional defines, specified in skia's 147 # This variable contains additional defines, specified in skia's
167 # skia_for_chromium_defines.gypi file. 148 # skia_for_chromium_defines.gypi file.
168 '<@(skia_for_chromium_defines)', 149 '<@(skia_for_chromium_defines)',
169 ], 150 ],
170 151
171 'default_font_cache_limit%': '(20*1024*1024)', 152 'default_font_cache_limit%': '(20*1024*1024)',
172 153
173 'conditions': [ 154 'conditions': [
174 ['OS== "android"', { 155 ['OS== "android"', {
175 # Android devices are typically more memory constrained, so 156 # Android devices are typically more memory constrained, so
176 # default to a smaller glyph cache (it may be overriden at runtime 157 # default to a smaller glyph cache (it may be overriden at runtime
177 # when the renderer starts up, depending on the actual device memory). 158 # when the renderer starts up, depending on the actual device memory).
178 'default_font_cache_limit': '(1*1024*1024)', 159 'default_font_cache_limit': '(1*1024*1024)',
179 'skia_export_defines': [ 160 'skia_export_defines': [
180 'SK_BUILD_FOR_ANDROID', 161 'SK_BUILD_FOR_ANDROID',
181 ], 162 ],
182 }], 163 }],
183 ], 164 ],
184 }, 165 },
185 166
186 'defines': [ 167 'defines': [
187 '<@(skia_export_defines)', 168 '<@(skia_export_defines)',
188 169
189 # skia uses static initializers to initialize the serialization logic
190 # of its "pictures" library. This is currently not used in chrome; if
191 # it ever gets used the processes that use it need to call
192 # SkGraphics::Init().
193 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=0',
194
195 # Forcing the unoptimized path for the offset image filter in skia until
196 # all filters used in Blink support the optimized path properly
197 'SK_DISABLE_OFFSETIMAGEFILTER_OPTIMIZATION',
198
199 'IGNORE_ROT_AA_RECT_OPT',
200
201 'SK_IGNORE_BLURRED_RRECT_OPT',
202
203 # this flag forces Skia not to use typographic metrics with GDI.
204 'SK_GDI_ALWAYS_USE_TEXTMETRICS_FOR_FONT_METRICS',
205
206 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)', 170 'SK_DEFAULT_FONT_CACHE_LIMIT=<(default_font_cache_limit)',
207
208 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE',
209 ], 171 ],
210 172
211 'direct_dependent_settings': { 173 'direct_dependent_settings': {
212 'defines': [ 174 'defines': [
213 '<@(skia_export_defines)', 175 '<@(skia_export_defines)',
214 ], 176 ],
215 }, 177 },
216 178
217 # We would prefer this to be direct_dependent_settings, 179 # We would prefer this to be direct_dependent_settings,
218 # however we currently have no means to enforce that direct dependents 180 # however we currently have no means to enforce that direct dependents
219 # re-export if they include Skia headers in their public headers. 181 # re-export if they include Skia headers in their public headers.
220 'all_dependent_settings': { 182 'all_dependent_settings': {
221 'include_dirs': [ 183 'include_dirs': [
222 '..', 184 '..',
223 'config', 185 'config',
224 ], 186 ],
225 }, 187 },
226 188
227 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], 189 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800],
228 } 190 }
OLDNEW
« no previous file with comments | « skia/ext/event_tracer_impl.cc ('k') | skia/skia_test_expectations.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698