Enable accelerated 2D canvas at compile time (still protected by a runtime flag). This enables compilation on all platforms, but it's only hooked up internally on Win and Linux.

BUG=none
TEST=if it compiles, you're happy

Review URL: http://codereview.chromium.org/3117023

git-svn-id: http://src.chromium.org/svn/trunk/src/build@56562 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
senorblanco@google.com 2010-08-18 18:33:43 +00:00
Родитель a31d5df18c
Коммит d9aff72fdb
1 изменённых файлов: 3 добавлений и 9 удалений

Просмотреть файл

@ -58,27 +58,21 @@
# 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': [
['OS=="win" or OS=="linux" or OS=="mac" or use_accelerated_compositing==1', {
'feature_defines': [
'WTF_USE_ACCELERATED_COMPOSITING=1',
'ENABLE_3D_RENDERING=1',
'WTF_USE_ACCELERATED_COMPOSITING=1',
'ENABLE_3D_RENDERING=1',
'ENABLE_ACCELERATED_2D_CANVAS=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
# merge the lists rather than replace one with the other. This may