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

Issue 1424313010: Separate out natively-texture image/bmp draws from cached-as-texture image/bmp draws (Closed)

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

Description

Separate out natively-texture image/bmp draws from cached-as-texture image/bmp draws This makes texture-backed images and bitmaps down a new code path. It adds a pinch point via the texture adjuster that will be used to handle copied necessary for different texture targets. It also fixes bugs in the existing code exhibited by recent updates to the bleed GM. The plan is to move the the sw/generator-backed imgs/bmps on to this code path with future changes. Committed: https://skia.googlesource.com/skia/+/c55271f2551533b37043aa2e37f754832a43073c

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : update #

Patch Set 4 : tiny #

Total comments: 52

Patch Set 5 : Add comment #

Patch Set 6 : share more code in gpu device #

Patch Set 7 : update #

Patch Set 8 : update #

Patch Set 9 : more #

Patch Set 10 : remove comment #

Total comments: 36

Patch Set 11 : Address comments #

Patch Set 12 : address more comments #

Patch Set 13 : update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -167 lines) Patch
M gyp/gpu.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/GrBlurUtils.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +20 lines, -0 lines 0 comments Download
M src/gpu/GrBlurUtils.cpp View 1 2 3 4 5 6 7 8 9 10 4 chunks +134 lines, -93 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 1 2 3 4 5 6 7 8 5 chunks +38 lines, -15 lines 0 comments Download
A src/gpu/GrImageIDTextureAdjuster.h View 1 chunk +48 lines, -0 lines 0 comments Download
A src/gpu/GrImageIDTextureAdjuster.cpp View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
M src/gpu/GrStrokeInfo.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +42 lines, -4 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +207 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 3 chunks +21 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 8 chunks +61 lines, -19 lines 0 comments Download
A src/gpu/SkGpuDevice_drawTexture.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +204 lines, -0 lines 0 comments Download
M src/gpu/SkGr.cpp View 5 chunks +5 lines, -34 lines 0 comments Download
M src/gpu/SkGrPriv.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/batches/GrAAFillRectBatch.h View 1 chunk +10 lines, -0 lines 0 comments Download
M src/gpu/batches/GrAAFillRectBatch.cpp View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M src/gpu/effects/GrBicubicEffect.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (6 generated)
bsalomon
5 years, 1 month ago (2015-11-05 18:47:00 UTC) #2
joshualitt
first pass, Robert should really handle the meat. https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrDrawContext.cpp#newcode298 src/gpu/GrDrawContext.cpp:298: bool ...
5 years, 1 month ago (2015-11-05 19:53:12 UTC) #3
bsalomon
https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrDrawContext.cpp File src/gpu/GrDrawContext.cpp (right): https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrDrawContext.cpp#newcode298 src/gpu/GrDrawContext.cpp:298: bool canApplyAA = width >=0 ? viewMatrix.rectStaysRect() : On ...
5 years, 1 month ago (2015-11-05 20:10:37 UTC) #4
robertphillips
https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrBlurUtils.cpp File src/gpu/GrBlurUtils.cpp (right): https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrBlurUtils.cpp#newcode171 src/gpu/GrBlurUtils.cpp:171: pathPtr = tmpPath.get(); do we need to set volatility ...
5 years, 1 month ago (2015-11-05 20:13:24 UTC) #5
robertphillips
https://codereview.chromium.org/1424313010/diff/60001/src/gpu/SkGpuDevice_drawTexture.cpp File src/gpu/SkGpuDevice_drawTexture.cpp (right): https://codereview.chromium.org/1424313010/diff/60001/src/gpu/SkGpuDevice_drawTexture.cpp#newcode31 src/gpu/SkGpuDevice_drawTexture.cpp:31: const SkPaint& paint) { '\n' ?
5 years, 1 month ago (2015-11-05 20:49:39 UTC) #6
robertphillips
provisional lgtm if you want it. I'll take another look tomorrow morning.
5 years, 1 month ago (2015-11-05 20:53:14 UTC) #7
bsalomon
Updated, moved common code from draw(Image|Bitmap)[Rect] to a new drawTextureAdjuster function. https://codereview.chromium.org/1424313010/diff/60001/src/gpu/GrBlurUtils.cpp File src/gpu/GrBlurUtils.cpp (right): ...
5 years, 1 month ago (2015-11-06 15:24:26 UTC) #8
robertphillips
lgtm + mainly dox suggestions https://codereview.chromium.org/1424313010/diff/180001/src/gpu/GrBlurUtils.cpp File src/gpu/GrBlurUtils.cpp (right): https://codereview.chromium.org/1424313010/diff/180001/src/gpu/GrBlurUtils.cpp#newcode328 src/gpu/GrBlurUtils.cpp:328: if (!strokeInfo.isDashed() && pathEffect ...
5 years, 1 month ago (2015-11-06 20:54:52 UTC) #9
bsalomon
https://codereview.chromium.org/1424313010/diff/180001/src/gpu/GrBlurUtils.cpp File src/gpu/GrBlurUtils.cpp (right): https://codereview.chromium.org/1424313010/diff/180001/src/gpu/GrBlurUtils.cpp#newcode328 src/gpu/GrBlurUtils.cpp:328: if (!strokeInfo.isDashed() && pathEffect && pathEffect->filterPath(tmpPath2.init(), On 2015/11/06 20:54:51, ...
5 years, 1 month ago (2015-11-09 19:35:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424313010/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424313010/220001
5 years, 1 month ago (2015-11-09 19:35:44 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/4128)
5 years, 1 month ago (2015-11-09 19:37:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1424313010/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1424313010/240001
5 years, 1 month ago (2015-11-09 19:43:52 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-09 19:56:00 UTC) #19
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://skia.googlesource.com/skia/+/c55271f2551533b37043aa2e37f754832a43073c

Powered by Google App Engine
This is Rietveld 408576698