Move alpha-ramp AA to GrContext, detect cases when AA is applied via other methods...
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Apr 2011 12:43:45 +0000 (12:43 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Mon, 25 Apr 2011 12:43:45 +0000 (12:43 +0000)
commit205d46067ace24bd4b111cf44efc96caff6c4d30
treef405973a26a367e566ecbd4c327ad929654d8e1f
parente624caf6c33e1379a7f6f8333a8f0ec25025420e
Move alpha-ramp AA to GrContext, detect cases when AA is applied via other methods (smooth lines, MSAA) or rect falls on integer coords and skip the alpha ramp path. Use pre-fab index buffer for alpha-ramped fill rects and stroke rects.

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

git-svn-id: http://skia.googlecode.com/svn/trunk@1169 2bbb7eff-a529-9590-31e7-b0007b416f81
12 files changed:
gpu/include/GrContext.h
gpu/include/GrGpu.h
gpu/include/GrMatrix.h
gpu/include/GrPoint.h
gpu/include/GrRect.h
gpu/include/GrScalar.h
gpu/src/GrContext.cpp
gpu/src/GrGpuGL.cpp
gpu/src/GrMatrix.cpp
gyp/skia.gyp
samplecode/SampleAARects.cpp [new file with mode: 0644]
src/gpu/SkGpuDevice.cpp