add macro DEFER_PATHS to proper checks
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 Apr 2012 21:40:21 +0000 (21:40 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 Apr 2012 21:40:21 +0000 (21:40 +0000)
Submitted on behalf of Guanqun.Lu@gmail.com

Review URL: http://codereview.appspot.com/5972047/

git-svn-id: http://skia.googlecode.com/svn/trunk@3608 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrContext.cpp

index 4b3d942..a87631c 100644 (file)
@@ -30,7 +30,6 @@
 
 #define MAX_BLUR_SIGMA 4.0f
 
-
 // When we're using coverage AA but the blend is incompatible (given gpu
 // limitations) should we disable AA or draw wrong?
 #define DISABLE_COVERAGE_AA_FOR_BLEND 1
@@ -2056,7 +2055,7 @@ void GrContext::setupDrawBuffer() {
     GrAssert(NULL == fDrawBufferVBAllocPool);
     GrAssert(NULL == fDrawBufferIBAllocPool);
 
-#if DEFER_TEXT_RENDERING || BATCH_RECT_TO_RECT
+#if DEFER_TEXT_RENDERING || BATCH_RECT_TO_RECT || DEFER_PATHS
     fDrawBufferVBAllocPool =
         new GrVertexBufferAllocPool(fGpu, false,
                                     DRAW_BUFFER_VBPOOL_BUFFER_SIZE,