Re-adding analytical GeoProc for rectangles
authordvonbeck <dvonbeck@google.com>
Fri, 12 Aug 2016 19:50:36 +0000 (12:50 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Aug 2016 19:50:36 +0000 (12:50 -0700)
commit09e12a6d4a75d281c47e00a64eeba893ba096f9e
treec9f8cf03b8b2194ef5163fa6be633c826b5cc021
parent8a822ba4a39c9eac8710eafb7ca4f7ac888b5af8
Re-adding analytical GeoProc for rectangles

Adapted old GeoProc because its knowledge of the geometry is helpful for computing the distance vector: https://skia.googlesource.com/skia/+/6006d0f8c4f19d19a12de20826f731f52ac822a7/src/gpu/GrAARectRenderer.cpp

Added distance vector capabilities to this GeoProc.

Modified GrDrawContext to used this GeoProc when drawing anti-aliased vectors with a shader that requires distance vectors.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2230513004

Review-Url: https://codereview.chromium.org/2230513004
gyp/gpu.gypi
src/gpu/GrBatchTest.cpp
src/gpu/GrDrawContext.cpp
src/gpu/batches/GrAnalyticRectBatch.cpp [new file with mode: 0644]
src/gpu/batches/GrAnalyticRectBatch.h [new file with mode: 0644]
src/gpu/batches/GrRectBatchFactory.h