diff options
author | bungeman@chromium.org <bungeman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-29 20:20:01 +0000 |
---|---|---|
committer | bungeman@chromium.org <bungeman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-29 20:20:01 +0000 |
commit | b5158d481be0c03e47fc459da85ff5c01f2ca56f (patch) | |
tree | 05499e460b8aceebec92331429e1648af695a83c /skia/skia.gyp | |
parent | 6282d11ef8e5cb9f2cda5cc416fe690244a74aea (diff) | |
download | chromium_src-b5158d481be0c03e47fc459da85ff5c01f2ca56f.zip chromium_src-b5158d481be0c03e47fc459da85ff5c01f2ca56f.tar.gz chromium_src-b5158d481be0c03e47fc459da85ff5c01f2ca56f.tar.bz2 |
Set gamma correction settings to match platform.
BUG=144809,145317,141425
Review URL: https://chromiumcodereview.appspot.com/10871091
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/skia.gyp')
-rw-r--r-- | skia/skia.gyp | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/skia/skia.gyp b/skia/skia.gyp index 4bf1f28..cf6503c 100644 --- a/skia/skia.gyp +++ b/skia/skia.gyp @@ -210,7 +210,7 @@ ], 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], 'defines': [ - 'SK_GAMMA_SRGB', + #'SK_GAMMA_SRGB', #'SK_GAMMA_APPLY_TO_A8', 'SK_BUILD_NO_IMAGE_ENCODE', 'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"', @@ -250,6 +250,26 @@ }], ], }], + #Settings for text blitting, chosen to approximate the system browser. + [ 'OS == "linux"', { + 'defines': [ + 'SK_GAMMA_EXPONENT=1.2', + 'SK_GAMMA_CONTRAST=0.2', + ], + }], + ['OS == "android" or OS == "win"', { + 'defines': [ + 'SK_GAMMA_SRGB', + 'SK_GAMMA_CONTRAST=0.5', + ], + }], + ['OS == "mac"', { + 'defines': [ + 'SK_GAMMA_SRGB', + 'SK_GAMMA_CONTRAST=0.0', + ], + }], + # For POSIX platforms, prefer the Mutex implementation provided by Skia # since it does not generate static initializers. [ 'OS == "android" or OS == "linux" or OS == "mac"', { |