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
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 454204d..d16d797 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',