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

Issue 925343002: Swap render target instead of creating a new gpu device for surface copy-on-write (Closed)

Created:
5 years, 10 months ago by Kimmo Kinnunen
Modified:
5 years, 10 months ago
Reviewers:
bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@skimage-filters-02-use-sksurface-constructor-skgpudevice
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Swap render target instead of creating a new gpu device for surface copy-on-write Swap render target of the gpu device instead of creating a new gpu device when making a copy-on-write upon surface modification. This removes the SkCanvas::setRootDevice which contains problematic code when trying to increase the use of SkImages internally in Skia. BUG=skia:3388 Committed: https://skia.googlesource.com/skia/+/abcfab4d68d53900ef33320bb2622696c14d14b0

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -100 lines) Patch
M include/core/SkCanvas.h View 1 chunk +0 lines, -9 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 chunk +0 lines, -53 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 4 chunks +59 lines, -18 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 5 4 chunks +4 lines, -20 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
Kimmo Kinnunen
5 years, 10 months ago (2015-02-16 14:21:20 UTC) #2
reed1
I hope this works :) 'cause I'd love to get rid of that method on ...
5 years, 10 months ago (2015-02-18 13:49:07 UTC) #4
bsalomon
Agreed that if this works, it's a great change. https://chromiumcodereview.appspot.com/925343002/diff/20001/src/gpu/SkGpuDevice.h File src/gpu/SkGpuDevice.h (right): https://chromiumcodereview.appspot.com/925343002/diff/20001/src/gpu/SkGpuDevice.h#newcode54 src/gpu/SkGpuDevice.h:54: ...
5 years, 10 months ago (2015-02-18 14:29:37 UTC) #5
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/925343002/diff/20001/src/gpu/SkGpuDevice.h File src/gpu/SkGpuDevice.h (right): https://chromiumcodereview.appspot.com/925343002/diff/20001/src/gpu/SkGpuDevice.h#newcode54 src/gpu/SkGpuDevice.h:54: static GrRenderTarget* CreateRenderTarget(GrContext* context, SkSurface::Budgeted budgeted, On 2015/02/18 14:29:36, ...
5 years, 10 months ago (2015-02-18 14:42:54 UTC) #6
Kimmo Kinnunen
https://chromiumcodereview.appspot.com/925343002/diff/20001/src/image/SkSurface_Gpu.cpp File src/image/SkSurface_Gpu.cpp (right): https://chromiumcodereview.appspot.com/925343002/diff/20001/src/image/SkSurface_Gpu.cpp#newcode111 src/image/SkSurface_Gpu.cpp:111: SkAutoTUnref<GrRenderTarget> rt(SkGpuDevice::CreateRenderTarget(ctx, budgeted, info, On 2015/02/18 14:29:37, bsalomon wrote: ...
5 years, 10 months ago (2015-02-18 15:06:46 UTC) #7
Kimmo Kinnunen
https://codereview.chromium.org/925343002/diff/20001/src/image/SkSurface_Gpu.cpp File src/image/SkSurface_Gpu.cpp (right): https://codereview.chromium.org/925343002/diff/20001/src/image/SkSurface_Gpu.cpp#newcode111 src/image/SkSurface_Gpu.cpp:111: SkAutoTUnref<GrRenderTarget> rt(SkGpuDevice::CreateRenderTarget(ctx, budgeted, info, On 2015/02/18 14:29:37, bsalomon wrote: ...
5 years, 10 months ago (2015-02-19 15:52:19 UTC) #8
bsalomon
Does the non-static SkGpuDevice::replaceRenderTarget(bool) idea not work?
5 years, 10 months ago (2015-02-19 22:48:35 UTC) #9
Kimmo Kinnunen
On 2015/02/19 22:48:35, bsalomon wrote: > Does the non-static SkGpuDevice::replaceRenderTarget(bool) idea not work? Done.
5 years, 10 months ago (2015-02-20 12:34:41 UTC) #10
bsalomon
Awesome, lgtm
5 years, 10 months ago (2015-02-20 17:33:03 UTC) #11
bsalomon
Awesome, lgtm
5 years, 10 months ago (2015-02-20 17:33:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/925343002/120001
5 years, 10 months ago (2015-02-23 06:47:09 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 06:53:49 UTC) #15
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/abcfab4d68d53900ef33320bb2622696c14d14b0

Powered by Google App Engine
This is Rietveld 408576698