From 9f169a4b01483b83880a1f8aa4d7a69790c2c8e8 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 12 Jan 2012 20:56:52 +0000 Subject: Add gyp variable to disable OSAA Review URL: http://codereview.appspot.com/5539047 git-svn-id: http://skia.googlecode.com/svn/trunk@3033 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gyp/gpu.gyp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gyp') diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp index 454204d990..d16d797a88 100644 --- a/gyp/gpu.gyp +++ b/gyp/gpu.gyp @@ -1,4 +1,9 @@ { + 'variables': { + 'skia_gpu_disable_osaa%': 0, + }, + 'skia_gpu_disable_osaa': '<(skia_gpu_disable_osaa)', + 'includes': [ 'common.gypi', ], @@ -282,6 +287,11 @@ 'GR_IMPLEMENTATION=1', ], 'conditions': [ + [ 'skia_gpu_disable_osaa', { + 'defines': [ + 'GR_USE_OFFSCREEN_AA=0', + ], + }], [ 'skia_os == "linux"', { 'sources!': [ '../src/gpu/GrGLDefaultInterface_none.cpp', -- cgit v1.2.3