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

Issue 2282983003: Reduce CPU overhead on drawRegion() (Closed)

Created:
4 years, 3 months ago by msarett
Modified:
4 years, 3 months ago
Reviewers:
bsalomon, djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Reduce CPU overhead on drawRegion() Only batch when the view matrices are the same. This allows us to skip applying the matrix and uploading local coords. drawregion Bench on Nexus 6P: Before 4.69ms After 2.83ms This puts SkiaGL nearly on par with OpenGL. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2282983003 Committed: https://skia.googlesource.com/skia/+/febb22469999b928850182ebc57bfd6fbd7402d6

Patch Set 1 : Update bench #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -27 lines) Patch
M gm/drawregion.cpp View 1 chunk +2 lines, -0 lines 1 comment Download
M src/gpu/batches/GrRegionBatch.cpp View 7 chunks +18 lines, -27 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 16 (12 generated)
msarett
https://codereview.chromium.org/2282983003/diff/40001/gm/drawregion.cpp File gm/drawregion.cpp (right): https://codereview.chromium.org/2282983003/diff/40001/gm/drawregion.cpp#newcode40 gm/drawregion.cpp:40: canvas->translate(10, 10); Applying the view matrix is a no-op ...
4 years, 3 months ago (2016-08-26 18:41:55 UTC) #7
bsalomon
lgtm
4 years, 3 months ago (2016-08-26 19:11:25 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2282983003/40001
4 years, 3 months ago (2016-08-26 19:48:35 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 19:49:31 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:40001) as
https://skia.googlesource.com/skia/+/febb22469999b928850182ebc57bfd6fbd7402d6

Powered by Google App Engine
This is Rietveld 408576698