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

Issue 792923002: Apply the layer's image filter to the hoisted image (Closed)

Created:
6 years ago by robertphillips
Modified:
6 years ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Apply the layer's image filter to the hoisted image Exposing SkSurface_Gpu makes me sad and I would welcome alternatives. This change is desireable since it greatly decreases the render target swaps. Committed: https://skia.googlesource.com/skia/+/7b9e8a4b6af0f3df9bf20a5fdc0977bcd7c3c1ab

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed friends #

Total comments: 2

Patch Set 3 : Fix cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -29 lines) Patch
M gyp/gpu.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gpu.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrLayerCache.h View 4 chunks +14 lines, -1 line 0 comments Download
M src/gpu/GrLayerHoister.h View 2 chunks +10 lines, -0 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 4 chunks +40 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
A src/image/SkSurface_Gpu.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 chunk +1 line, -21 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
robertphillips
6 years ago (2014-12-10 18:49:01 UTC) #2
bsalomon
https://codereview.chromium.org/792923002/diff/1/src/gpu/SkGpuDevice.h File src/gpu/SkGpuDevice.h (right): https://codereview.chromium.org/792923002/diff/1/src/gpu/SkGpuDevice.h#newcode137 src/gpu/SkGpuDevice.h:137: friend class GrLayerHoister; can the filter function be moved ...
6 years ago (2014-12-10 18:54:20 UTC) #3
robertphillips
https://codereview.chromium.org/792923002/diff/1/src/gpu/SkGpuDevice.h File src/gpu/SkGpuDevice.h (right): https://codereview.chromium.org/792923002/diff/1/src/gpu/SkGpuDevice.h#newcode137 src/gpu/SkGpuDevice.h:137: friend class GrLayerHoister; On 2014/12/10 18:54:20, bsalomon wrote: > ...
6 years ago (2014-12-10 19:16:10 UTC) #4
bsalomon
lgtm but Mike should look, too. https://codereview.chromium.org/792923002/diff/20001/src/gpu/GrLayerHoister.cpp File src/gpu/GrLayerHoister.cpp (right): https://codereview.chromium.org/792923002/diff/20001/src/gpu/GrLayerHoister.cpp#newcode302 src/gpu/GrLayerHoister.cpp:302: SkSurface_Gpu* gpuSurf = ...
6 years ago (2014-12-10 19:21:31 UTC) #5
robertphillips
https://codereview.chromium.org/792923002/diff/20001/src/gpu/GrLayerHoister.cpp File src/gpu/GrLayerHoister.cpp (right): https://codereview.chromium.org/792923002/diff/20001/src/gpu/GrLayerHoister.cpp#newcode302 src/gpu/GrLayerHoister.cpp:302: SkSurface_Gpu* gpuSurf = reinterpret_cast<SkSurface_Gpu*>(surface.get()); On 2014/12/10 19:21:31, bsalomon wrote: ...
6 years ago (2014-12-10 19:28:03 UTC) #6
robertphillips
Mike - ping
6 years ago (2014-12-11 12:51:27 UTC) #7
reed1
sounds like we should retool imagefilters to not require a device lgtm
6 years ago (2014-12-11 15:12:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/792923002/40001
6 years ago (2014-12-11 15:14:33 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://skia.googlesource.com/skia/+/7b9e8a4b6af0f3df9bf20a5fdc0977bcd7c3c1ab
6 years ago (2014-12-11 16:20:36 UTC) #11
mtklein
On 2014/12/11 16:20:36, I haz the power (commit-bot) wrote: > Committed patchset #3 (id:40001) as ...
6 years ago (2014-12-13 22:22:11 UTC) #12
mtklein
6 years ago (2014-12-13 22:22:40 UTC) #13
Message was sent while issue was closed.
On 2014/12/13 22:22:11, mtklein wrote:
> On 2014/12/11 16:20:36, I haz the power (commit-bot) wrote:
> > Committed patchset #3 (id:40001) as
> >
https://skia.googlesource.com/skia/+/7b9e8a4b6af0f3df9bf20a5fdc0977bcd7c3c1ab
> 
> Thought you might like to know this registered as a 20-30% perf win on
> desk_carsvg.skp on some of the bots: https://codereview.chromium.org/792923002

Err... https://skiaperf.com/cl/419

Powered by Google App Engine
This is Rietveld 408576698