Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Issue 1443263002: Optimize visualbench offscreen blits (Closed)

Created:
5 years, 1 month ago by Chris Dalton
Modified:
5 years ago
Reviewers:
joshualitt, bsalomon
CC:
reviews_skia.org, nv_mark, Kimmo Kinnunen
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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: Committed: https://skia.googlesource.com/skia/+/0f6cca8a2070b974368652ec04b6003e9205a8a3

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : one more check #

Total comments: 6

Patch Set 4 : simplify #

Patch Set 5 : subrect for cpu bench as well #

Patch Set 6 : use src mode for the cpu blit #

Patch Set 7 : Remove dependency on unrelated issue #

Patch Set 8 : Fix msvc warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -15 lines) Patch
M tools/VisualBench/VisualBenchmarkStream.cpp View 3 chunks +8 lines, -2 lines 0 comments Download
M tools/VisualBench/VisualSKPBench.h View 1 chunk +2 lines, -0 lines 0 comments Download
M tools/VisualBench/VisualSKPBench.cpp View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M tools/VisualBench/WrappedBenchmark.h View 1 2 3 4 5 6 7 5 chunks +56 lines, -13 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
Chris Dalton
I'm not sure if this is the base way to go about it but it's ...
5 years, 1 month ago (2015-11-13 21:33:20 UTC) #2
bsalomon
On 2015/11/13 21:33:20, Chris Dalton wrote: > I'm not sure if this is the base ...
5 years, 1 month ago (2015-11-16 13:59:19 UTC) #3
joshualitt
On 2015/11/16 13:59:19, bsalomon wrote: > On 2015/11/13 21:33:20, Chris Dalton wrote: > > I'm ...
5 years, 1 month ago (2015-11-16 14:53:30 UTC) #4
Chris Dalton
Thanks for the replies. I added that comment to the nvpr blit routine and added ...
5 years, 1 month ago (2015-11-16 18:30:35 UTC) #5
bsalomon
https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h File tools/VisualBench/WrappedBenchmark.h (right): https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h#newcode105 tools/VisualBench/WrappedBenchmark.h:105: SkCanvas::LayerIter canvasIter(canvas, false); On 2015/11/16 18:30:35, Chris Dalton wrote: ...
5 years, 1 month ago (2015-11-16 21:14:59 UTC) #7
Chris Dalton
https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h File tools/VisualBench/WrappedBenchmark.h (right): https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h#newcode112 tools/VisualBench/WrappedBenchmark.h:112: !dst || canvas->imageInfo().dimensions() != SkISize::Make(dst->width(),dst->height())) { On 2015/11/16 21:14:59, ...
5 years, 1 month ago (2015-11-16 21:23:17 UTC) #8
joshualitt
https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h File tools/VisualBench/WrappedBenchmark.h (right): https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h#newcode112 tools/VisualBench/WrappedBenchmark.h:112: !dst || canvas->imageInfo().dimensions() != SkISize::Make(dst->width(),dst->height())) { On 2015/11/16 21:23:17, ...
5 years, 1 month ago (2015-11-18 17:02:03 UTC) #9
joshualitt
On 2015/11/18 17:02:03, joshualitt wrote: > https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h > File tools/VisualBench/WrappedBenchmark.h (right): > > https://codereview.chromium.org/1443263002/diff/40001/tools/VisualBench/WrappedBenchmark.h#newcode112 > ...
5 years ago (2015-11-24 14:50:53 UTC) #10
commit-bot: I haz the power
This CL has an open dependency (Issue 1473033002 Patch 1). Please resolve the dependency and ...
5 years ago (2015-11-24 16:14:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1443263002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1443263002/120001
5 years ago (2015-11-24 16:29:05 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/4528)
5 years ago (2015-11-24 16:31:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1443263002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1443263002/140001
5 years ago (2015-11-24 16:41:06 UTC) #21
commit-bot: I haz the power
5 years ago (2015-11-24 16:54:33 UTC) #22
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/0f6cca8a2070b974368652ec04b6003e9205a8a3

Powered by Google App Engine
This is Rietveld 408576698