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: http://src.chromium.org/svn/trunk/src/build@54025 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
28459e674d
Коммит
3971766737
|
@ -55,10 +55,12 @@
|
||||||
# through GYP_DEFINES.
|
# through GYP_DEFINES.
|
||||||
'variables': {
|
'variables': {
|
||||||
'use_accelerated_compositing%': 0,
|
'use_accelerated_compositing%': 0,
|
||||||
|
'accelerated_2d_canvas%': 0,
|
||||||
'enable_svg%': 1,
|
'enable_svg%': 1,
|
||||||
'enable_touch_events%': 1,
|
'enable_touch_events%': 1,
|
||||||
},
|
},
|
||||||
'use_accelerated_compositing%': '<(use_accelerated_compositing)',
|
'use_accelerated_compositing%': '<(use_accelerated_compositing)',
|
||||||
|
'accelerated_2d_canvas%': '<(accelerated_2d_canvas)',
|
||||||
'enable_svg%': '<(enable_svg)',
|
'enable_svg%': '<(enable_svg)',
|
||||||
'enable_touch_events%': '<(enable_touch_events)',
|
'enable_touch_events%': '<(enable_touch_events)',
|
||||||
'conditions': [
|
'conditions': [
|
||||||
|
@ -69,6 +71,11 @@
|
||||||
],
|
],
|
||||||
'use_accelerated_compositing': 1,
|
'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
|
# TODO: If the need arises, create a mechanism that will intelligently
|
||||||
# merge the lists rather than replace one with the other. This may
|
# merge the lists rather than replace one with the other. This may
|
||||||
|
|
Загрузка…
Ссылка в новой задаче