summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 21:34:25 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-28 21:34:25 +0000
commitc9206275ca3f57888fcf9da96c647d8fcf67ff3f (patch)
tree1dd6dd640fa53d7599f5cd9d11dfcbd58f9713fd /build
parent8e43e077d1115872a7556744b8aca51816ac69fd (diff)
downloadchromium_src-c9206275ca3f57888fcf9da96c647d8fcf67ff3f.zip
chromium_src-c9206275ca3f57888fcf9da96c647d8fcf67ff3f.tar.gz
chromium_src-c9206275ca3f57888fcf9da96c647d8fcf67ff3f.tar.bz2
Add a gyp variable to turn on accelerated 2d canvas build time flags
TEST=none BUG=none Review URL: http://codereview.chromium.org/3028029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54025 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/features_override.gypi7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/features_override.gypi b/build/features_override.gypi
index 1b77747..c6d9dc9 100644
--- a/build/features_override.gypi
+++ b/build/features_override.gypi
@@ -55,10 +55,12 @@
# through GYP_DEFINES.
'variables': {
'use_accelerated_compositing%': 0,
+ 'accelerated_2d_canvas%': 0,
'enable_svg%': 1,
'enable_touch_events%': 1,
},
'use_accelerated_compositing%': '<(use_accelerated_compositing)',
+ 'accelerated_2d_canvas%': '<(accelerated_2d_canvas)',
'enable_svg%': '<(enable_svg)',
'enable_touch_events%': '<(enable_touch_events)',
'conditions': [
@@ -69,6 +71,11 @@
],
'use_accelerated_compositing': 1,
}],
+ ['accelerated_2d_canvas==1', {
+ 'feature_defines': [
+ 'ENABLE_ACCELERATED_2D_CANVAS=1',
+ ]
+ }]
],
# TODO: If the need arises, create a mechanism that will intelligently
# merge the lists rather than replace one with the other. This may