Optimize visualbench offscreen blits
authorcdalton <cdalton@nvidia.com>
Tue, 24 Nov 2015 16:54:29 +0000 (08:54 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 24 Nov 2015 16:54:30 +0000 (08:54 -0800)
commit0f6cca8a2070b974368652ec04b6003e9205a8a3
treed2383b5577be2462263b30ac3bebbabb6b53b476
parentbda26436faacf21ae2afd572aacd45eaa79fd0a6
Optimize visualbench offscreen blits

Modifies NvprWrappedBenchmark to present its offscreen canvas via
GrContext::copySurface rather than going through the SkCanvas API.
Only copies a subrectangle the size of the benchmark, not the entire
canvas.

BUG=skia:

Review URL: https://codereview.chromium.org/1443263002
tools/VisualBench/VisualBenchmarkStream.cpp
tools/VisualBench/VisualSKPBench.cpp
tools/VisualBench/VisualSKPBench.h
tools/VisualBench/WrappedBenchmark.h