diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi index 8498fe3b35..0d4bc59e1b 100644 --- a/gyp/common_conditions.gypi +++ b/gyp/common_conditions.gypi @@ -631,6 +631,15 @@ 'SK_USE_POSIX_THREADS', ], }], + + [ 'skia_moz2d', { + 'defines': [ + 'SK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1', + 'SK_SUPPORT_LEGACY_COMPATIBLEDEVICE_CONFIG=1', + 'SK_SUPPORT_LEGACY_GETTOTALCLIP=1', + ], + }], + ], # end 'conditions' # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 'xcode_settings': { diff --git a/gyp/common_variables.gypi b/gyp/common_variables.gypi index 2add2ee735..b6d4e76af4 100644 --- a/gyp/common_variables.gypi +++ b/gyp/common_variables.gypi @@ -219,6 +219,7 @@ 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', 'skia_run_pdfviewer_in_gm%': 0, 'skia_disable_inlining%': 0, + 'skia_moz2d%': 0, # These are referenced by our .gypi files that list files (e.g. core.gypi) #