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

Issue 2267273006: GPU implementation of drawRegion() (Closed)

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

Description

GPU implementation of drawRegion() Nexus 6P drawregion Bench Performance Before 48.0ms After 3.57ms BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2267273006 Committed: https://skia.googlesource.com/skia/+/cc319b95a58ae15e88c3c028b8726e7cab9121ff

Patch Set 1 #

Patch Set 2 : Keep fixing stuff #

Total comments: 14

Patch Set 3 : Response to comments #

Total comments: 10

Patch Set 4 : Fill in local coordinates #

Patch Set 5 : Win fix #

Total comments: 2

Patch Set 6 : SkToBool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -1 line) Patch
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M include/gpu/GrDrawContext.h View 1 2 1 chunk +15 lines, -1 line 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 4 5 2 chunks +30 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
A src/gpu/batches/GrRegionBatch.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A src/gpu/batches/GrRegionBatch.cpp View 1 2 3 1 chunk +176 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (24 generated)
msarett
This is a WIP, I've commented on some things that I need to follow up ...
4 years, 3 months ago (2016-08-25 16:36:18 UTC) #4
bsalomon
https://codereview.chromium.org/2267273006/diff/40001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/40001/src/gpu/GrDrawContext.cpp#newcode957 src/gpu/GrDrawContext.cpp:957: SkAutoTUnref<GrDrawBatch> batch(GrRegionBatch::Create(paint.getColor(), viewMatrix, region)); On 2016/08/25 16:36:17, msarett wrote: ...
4 years, 3 months ago (2016-08-25 17:49:03 UTC) #5
msarett
Please take a look. Performance looks great :). https://codereview.chromium.org/2267273006/diff/40001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/40001/src/gpu/GrDrawContext.cpp#newcode957 src/gpu/GrDrawContext.cpp:957: SkAutoTUnref<GrDrawBatch> ...
4 years, 3 months ago (2016-08-25 20:51:42 UTC) #10
bsalomon
https://codereview.chromium.org/2267273006/diff/100001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/100001/src/gpu/GrDrawContext.cpp#newcode963 src/gpu/GrDrawContext.cpp:963: bool complexPaint = !style.isSimpleFill(); maybe complexStyle? https://codereview.chromium.org/2267273006/diff/100001/src/gpu/batches/GrRegionBatch.cpp File src/gpu/batches/GrRegionBatch.cpp ...
4 years, 3 months ago (2016-08-25 21:19:50 UTC) #11
msarett
https://codereview.chromium.org/2267273006/diff/100001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/100001/src/gpu/GrDrawContext.cpp#newcode963 src/gpu/GrDrawContext.cpp:963: bool complexPaint = !style.isSimpleFill(); On 2016/08/25 21:19:50, bsalomon wrote: ...
4 years, 3 months ago (2016-08-25 21:26:35 UTC) #13
bsalomon
lgtm https://codereview.chromium.org/2267273006/diff/180001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/180001/src/gpu/GrDrawContext.cpp#newcode962 src/gpu/GrDrawContext.cpp:962: bool isNonTranslate = (0 != (viewMatrix.getType() & ~(SkMatrix::kTranslate_Mask))); ...
4 years, 3 months ago (2016-08-25 23:55:08 UTC) #27
msarett
https://codereview.chromium.org/2267273006/diff/180001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/2267273006/diff/180001/src/gpu/GrDrawContext.cpp#newcode962 src/gpu/GrDrawContext.cpp:962: bool isNonTranslate = (0 != (viewMatrix.getType() & ~(SkMatrix::kTranslate_Mask))); On ...
4 years, 3 months ago (2016-08-26 00:35:12 UTC) #28
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/2267273006/200001
4 years, 3 months ago (2016-08-26 00:35:25 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 01:07:22 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:200001) as
https://skia.googlesource.com/skia/+/cc319b95a58ae15e88c3c028b8726e7cab9121ff

Powered by Google App Engine
This is Rietveld 408576698