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

Unified Diff: build/features_override.gypi

Issue 3028029: Add a gyp variable to turn on accelerated 2d canvas build time flags (Closed)
Patch Set: Avoid duplicate definitions Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/features_override.gypi
diff --git a/build/features_override.gypi b/build/features_override.gypi
index 1b7774761e11637564db3b9dc52c7f98b7c55473..c6d9dc97c71dc640a143303f29d99b7745f57f2d 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
« 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