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

Side by Side Diff: skia/skia.gyp

Issue 10871091: Set gamma correction settings to match platform. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'skia', 8 'target_name': 'skia',
9 'type': '<(component)', 9 'type': '<(component)',
10 'variables': { 10 'variables': {
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 '../third_party/skia/include/pipe', 202 '../third_party/skia/include/pipe',
203 '../third_party/skia/include/ports', 203 '../third_party/skia/include/ports',
204 '../third_party/skia/include/utils', 204 '../third_party/skia/include/utils',
205 '../third_party/skia/src/core', 205 '../third_party/skia/src/core',
206 '../third_party/skia/src/gpu', 206 '../third_party/skia/src/gpu',
207 '../third_party/skia/src/sfnt', 207 '../third_party/skia/src/sfnt',
208 '../third_party/skia/src/utils', 208 '../third_party/skia/src/utils',
209 ], 209 ],
210 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800] , 210 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800] ,
211 'defines': [ 211 'defines': [
212 'SK_GAMMA_SRGB', 212 #'SK_GAMMA_SRGB',
213 #'SK_GAMMA_APPLY_TO_A8', 213 #'SK_GAMMA_APPLY_TO_A8',
214 'SK_BUILD_NO_IMAGE_ENCODE', 214 'SK_BUILD_NO_IMAGE_ENCODE',
215 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', 215 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
216 'GR_STATIC_RECT_VB=1', 216 'GR_STATIC_RECT_VB=1',
217 'GR_AGGRESSIVE_SHADER_OPTS=1', 217 'GR_AGGRESSIVE_SHADER_OPTS=1',
218 'SK_DISABLE_FAST_AA_STROKE_RECT', 218 'SK_DISABLE_FAST_AA_STROKE_RECT',
219 'SK_DEFERRED_CANVAS_USES_GPIPE=1', 219 'SK_DEFERRED_CANVAS_USES_GPIPE=1',
220 220
221 # this flag can be removed entirely once this has baked for a while 221 # this flag can be removed entirely once this has baked for a while
222 'SK_ALLOW_OVER_32K_BITMAPS', 222 'SK_ALLOW_OVER_32K_BITMAPS',
(...skipping 19 matching lines...) Expand all
242 '../third_party/skia/include/core/SkTypes.h', 242 '../third_party/skia/include/core/SkTypes.h',
243 ], 243 ],
244 'conditions': [ 244 'conditions': [
245 ['order_profiling != 0', { 245 ['order_profiling != 0', {
246 'target_conditions' : [ 246 'target_conditions' : [
247 ['_toolset=="target"', { 247 ['_toolset=="target"', {
248 'cflags!': [ '-finstrument-functions' ], 248 'cflags!': [ '-finstrument-functions' ],
249 }], 249 }],
250 ], 250 ],
251 }], 251 }],
252 #Settings for text blitting, chosen to approximate the system browser.
253 [ 'OS == "linux"', {
254 'defines': [
255 'SK_GAMMA_EXPONENT=1.2',
256 'SK_GAMMA_CONTRAST=0.2',
257 ],
258 }],
259 ['OS == "android" or OS == "win"', {
260 'defines': [
261 'SK_GAMMA_SRGB',
262 'SK_GAMMA_CONTRAST=0.5',
263 ],
264 }],
265 ['OS == "mac"', {
266 'defines': [
267 'SK_GAMMA_SRGB',
268 'SK_GAMMA_CONTRAST=0.0',
269 ],
270 }],
271
252 # For POSIX platforms, prefer the Mutex implementation provided by Skia 272 # For POSIX platforms, prefer the Mutex implementation provided by Skia
253 # since it does not generate static initializers. 273 # since it does not generate static initializers.
254 [ 'OS == "android" or OS == "linux" or OS == "mac"', { 274 [ 'OS == "android" or OS == "linux" or OS == "mac"', {
255 'defines+': [ 275 'defines+': [
256 'SK_USE_POSIX_THREADS', 276 'SK_USE_POSIX_THREADS',
257 ], 277 ],
258 'sources!': [ 278 'sources!': [
259 'ext/SkThread_chrome.cc', 279 'ext/SkThread_chrome.cc',
260 ], 280 ],
261 }], 281 }],
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 ], 749 ],
730 'include_dirs': [ 750 'include_dirs': [
731 '..', 751 '..',
732 ], 752 ],
733 'sources': [ 753 'sources': [
734 'ext/image_operations_bench.cc', 754 'ext/image_operations_bench.cc',
735 ], 755 ],
736 }, 756 },
737 ], 757 ],
738 } 758 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698