Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: build/features_override.gypi

Issue 3173033: Let use_accelerated_compositing be usable for both enabling and disabling compositing (Closed)
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'ENABLE_VIDEO=1', 50 'ENABLE_VIDEO=1',
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%': 1,
61 'enable_svg%': 1, 61 'enable_svg%': 1,
62 'enable_touch_events%': 1, 62 'enable_touch_events%': 1,
63 }, 63 },
64 'use_accelerated_compositing%': '<(use_accelerated_compositing)', 64 'use_accelerated_compositing%': '<(use_accelerated_compositing)',
65 'enable_svg%': '<(enable_svg)', 65 'enable_svg%': '<(enable_svg)',
66 'enable_touch_events%': '<(enable_touch_events)', 66 'enable_touch_events%': '<(enable_touch_events)',
67 'conditions': [ 67 'conditions': [
68 ['OS=="win" or OS=="linux" or OS=="mac" or use_accelerated_compositing==1' , { 68 ['(OS=="win" or OS=="linux" or OS=="mac") and use_accelerated_compositing= =1', {
69 'feature_defines': [ 69 'feature_defines': [
70 'WTF_USE_ACCELERATED_COMPOSITING=1', 70 'WTF_USE_ACCELERATED_COMPOSITING=1',
71 'ENABLE_3D_RENDERING=1', 71 'ENABLE_3D_RENDERING=1',
72 'ENABLE_ACCELERATED_2D_CANVAS=1', 72 'ENABLE_ACCELERATED_2D_CANVAS=1',
73 ], 73 ],
74 'use_accelerated_compositing': 1, 74 'use_accelerated_compositing': 1,
75 }], 75 }],
76 ], 76 ],
77 # TODO: If the need arises, create a mechanism that will intelligently 77 # TODO: If the need arises, create a mechanism that will intelligently
78 # 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
79 # require changes in gyp. 79 # require changes in gyp.
80 }, 80 },
81 81
82 } 82 }
83 83
84 # Local Variables: 84 # Local Variables:
85 # tab-width:2 85 # tab-width:2
86 # indent-tabs-mode:nil 86 # indent-tabs-mode:nil
87 # End: 87 # End:
88 # vim: set expandtab tabstop=2 shiftwidth=2: 88 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698