OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # This file is only included in full-chromium builds, and overrides the | 5 # This file is only included in full-chromium builds, and overrides the |
6 # feature_defines variable in third_party/WebKit/WebKit/chromium/features.gypi. | 6 # feature_defines variable in third_party/WebKit/WebKit/chromium/features.gypi. |
7 { | 7 { |
8 'variables': { | 8 'variables': { |
9 # WARNING: This list of strings completely replaces the list in | 9 # WARNING: This list of strings completely replaces the list in |
10 # features.gypi. Therefore, if an enable is listed in features.gypi | 10 # features.gypi. Therefore, if an enable is listed in features.gypi |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 'ENABLE_WEB_SOCKETS=1', | 51 'ENABLE_WEB_SOCKETS=1', |
52 'ENABLE_WEB_TIMING=1', | 52 'ENABLE_WEB_TIMING=1', |
53 'ENABLE_WORKERS=1', | 53 'ENABLE_WORKERS=1', |
54 'ENABLE_XPATH=1', | 54 'ENABLE_XPATH=1', |
55 'ENABLE_XSLT=1', | 55 'ENABLE_XSLT=1', |
56 ], | 56 ], |
57 # We have to nest variables inside variables so that they can be overridden | 57 # We have to nest variables inside variables so that they can be overridden |
58 # through GYP_DEFINES. | 58 # through GYP_DEFINES. |
59 'variables': { | 59 'variables': { |
60 'use_accelerated_compositing%': 0, | 60 'use_accelerated_compositing%': 0, |
61 'accelerated_2d_canvas%': 0, | |
62 'enable_svg%': 1, | 61 'enable_svg%': 1, |
63 'enable_touch_events%': 1, | 62 'enable_touch_events%': 1, |
64 }, | 63 }, |
65 'use_accelerated_compositing%': '<(use_accelerated_compositing)', | 64 'use_accelerated_compositing%': '<(use_accelerated_compositing)', |
66 'accelerated_2d_canvas%': '<(accelerated_2d_canvas)', | |
67 'enable_svg%': '<(enable_svg)', | 65 'enable_svg%': '<(enable_svg)', |
68 'enable_touch_events%': '<(enable_touch_events)', | 66 'enable_touch_events%': '<(enable_touch_events)', |
69 'conditions': [ | 67 'conditions': [ |
70 ['OS=="win" or OS=="linux" or OS=="mac" or use_accelerated_compositing==1'
, { | 68 ['OS=="win" or OS=="linux" or OS=="mac" or use_accelerated_compositing==1'
, { |
71 'feature_defines': [ | 69 'feature_defines': [ |
72 'WTF_USE_ACCELERATED_COMPOSITING=1', | 70 'WTF_USE_ACCELERATED_COMPOSITING=1', |
73 'ENABLE_3D_RENDERING=1', | 71 'ENABLE_3D_RENDERING=1', |
| 72 'ENABLE_ACCELERATED_2D_CANVAS=1', |
74 ], | 73 ], |
75 'use_accelerated_compositing': 1, | 74 'use_accelerated_compositing': 1, |
76 }], | 75 }], |
77 ['accelerated_2d_canvas==1', { | |
78 'feature_defines': [ | |
79 'ENABLE_ACCELERATED_2D_CANVAS=1', | |
80 ] | |
81 }] | |
82 ], | 76 ], |
83 # TODO: If the need arises, create a mechanism that will intelligently | 77 # TODO: If the need arises, create a mechanism that will intelligently |
84 # merge the lists rather than replace one with the other. This may | 78 # merge the lists rather than replace one with the other. This may |
85 # require changes in gyp. | 79 # require changes in gyp. |
86 }, | 80 }, |
87 | 81 |
88 } | 82 } |
89 | 83 |
90 # Local Variables: | 84 # Local Variables: |
91 # tab-width:2 | 85 # tab-width:2 |
92 # indent-tabs-mode:nil | 86 # indent-tabs-mode:nil |
93 # End: | 87 # End: |
94 # vim: set expandtab tabstop=2 shiftwidth=2: | 88 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |