Batched implementation of drawLattice() for GPU
authormsarett <msarett@google.com>
Thu, 18 Aug 2016 20:11:48 +0000 (13:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Aug 2016 20:11:48 +0000 (13:11 -0700)
commit93242c4ae50dfcc0d922cdb3ba80bbc7b4bbe93d
treed7b490c01fd5570351244b65fe7ec110d02a699b
parent3aafe111b6cc388400092851cc53bbbdfcb8a81c
Batched implementation of drawLattice() for GPU

Bechmarks (Nexus 6P):

Src=100x100, Dst=250x250, NumRects=9
Android              77.7us
Skia (without patch) 57.2us
Skia (with patch)    34.7us

Src=100x100, Dst=500x500, NumRects=9
Android              77.0us
Skia (without patch) 56.9us
Skia (with patch)    44.5us

Src=100x100, Dst=1000x1000, NumRects=9
Android              180us
Skia (without patch) 96.8us
Skia (with patch)    70.5us

Src=100x100, Dst=250x250, NumRects=15
Android              208us
Skia (without patch) 155us
Skia (with patch)    55.9us

Src=100x100, Dst=500x500, NumRects=15
Android              207us
Skia (without patch) 152us
Skia (with patch)    63.0us

Src=100x100, Dst=1000x1000, NumRects=15
Android              233us
Skia (without patch) 156us
Skia (with patch)    99.9us

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

Review-Url: https://codereview.chromium.org/2255963002
bench/DrawLatticeBench.cpp
include/gpu/GrDrawContext.h
include/private/SkTArray.h
src/core/SkLatticeIter.cpp
src/core/SkLatticeIter.h
src/gpu/GrDrawContext.cpp
src/gpu/SkGpuDevice.cpp
src/gpu/SkGpuDevice.h
src/gpu/batches/GrNinePatch.cpp
src/gpu/batches/GrNinePatch.h