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

Issue 2241353002: pin as texture api (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : share code with rawtextureadjuster #

Patch Set 3 : use refPinnedTexture in GpuDevice #

Total comments: 2

Patch Set 4 : rebase #

Total comments: 5

Patch Set 5 : remove mutex, add check for unpinned-at-destructor, added dox #

Patch Set 6 : check for == contexts in re-pin case #

Patch Set 7 : undo hack to canvas #

Total comments: 4

Patch Set 8 : fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -25 lines) Patch
M src/core/SkImagePriv.h View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
M src/gpu/GrImageIDTextureAdjuster.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M src/gpu/GrImageIDTextureAdjuster.cpp View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 3 chunks +13 lines, -6 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M src/image/SkImage_Base.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 3 4 5 4 chunks +71 lines, -1 line 0 comments Download

Messages

Total messages: 42 (20 generated)
reed1
Seems like I could move this pattern into SkImage_Base, and trivially have it work for ...
4 years, 4 months ago (2016-08-15 17:23:28 UTC) #3
bsalomon
https://codereview.chromium.org/2241353002/diff/40001/src/gpu/GrImageIDTextureAdjuster.h File src/gpu/GrImageIDTextureAdjuster.h (right): https://codereview.chromium.org/2241353002/diff/40001/src/gpu/GrImageIDTextureAdjuster.h#newcode39 src/gpu/GrImageIDTextureAdjuster.h:39: class GrImageTextureAdjuster : public GrRawTextureAdjuster { I wonder if ...
4 years, 4 months ago (2016-08-15 19:10:40 UTC) #6
reed1
ptal -- will remove the SkCanvas patch (just for testing) before landing
4 years, 4 months ago (2016-08-16 14:21:34 UTC) #9
bsalomon
A couple things: 1) I think we should check that the GrContext* passed in matches ...
4 years, 4 months ago (2016-08-16 14:40:56 UTC) #12
reed1
On 2016/08/16 14:40:56, bsalomon wrote: > A couple things: > > 1) I think we ...
4 years, 4 months ago (2016-08-16 16:08:13 UTC) #15
mtklein
> 2. I'm fine to add that additional constraint, but is this situation any > ...
4 years, 4 months ago (2016-08-16 16:09:14 UTC) #16
mtklein
On 2016/08/16 16:09:14, mtklein wrote: > > 2. I'm fine to add that additional constraint, ...
4 years, 4 months ago (2016-08-16 16:13:24 UTC) #17
mtklein
On 2016/08/16 16:09:14, mtklein wrote: > > 2. I'm fine to add that additional constraint, ...
4 years, 4 months ago (2016-08-16 16:13:24 UTC) #18
bsalomon
On 2016/08/16 16:13:24, mtklein wrote: > On 2016/08/16 16:09:14, mtklein wrote: > > > 2. ...
4 years, 4 months ago (2016-08-16 16:21:00 UTC) #19
reed1
On 2016/08/16 16:08:13, reed1 wrote: > On 2016/08/16 14:40:56, bsalomon wrote: > > A couple ...
4 years, 4 months ago (2016-08-16 16:31:55 UTC) #20
bsalomon
https://codereview.chromium.org/2241353002/diff/60001/src/image/SkImage_Gpu.h File src/image/SkImage_Gpu.h (right): https://codereview.chromium.org/2241353002/diff/60001/src/image/SkImage_Gpu.h#newcode48 src/image/SkImage_Gpu.h:48: return sk_ref_sp(fTexture.get()); Here do we know that this texture ...
4 years, 4 months ago (2016-08-16 16:36:47 UTC) #21
mtklein
On 2016/08/16 16:21:00, bsalomon wrote: > On 2016/08/16 16:13:24, mtklein wrote: > > On 2016/08/16 ...
4 years, 4 months ago (2016-08-16 16:39:53 UTC) #22
reed1
https://codereview.chromium.org/2241353002/diff/40001/src/gpu/GrImageIDTextureAdjuster.h File src/gpu/GrImageIDTextureAdjuster.h (right): https://codereview.chromium.org/2241353002/diff/40001/src/gpu/GrImageIDTextureAdjuster.h#newcode39 src/gpu/GrImageIDTextureAdjuster.h:39: class GrImageTextureAdjuster : public GrRawTextureAdjuster { On 2016/08/15 19:10:39, ...
4 years, 4 months ago (2016-08-16 16:41:33 UTC) #23
reed1
ptal -- moved api to SkImagePriv.h, which derek should already have access to
4 years, 4 months ago (2016-08-16 17:25:03 UTC) #24
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/2241353002/120001
4 years, 4 months ago (2016-08-17 17:18:44 UTC) #30
reed1
ptal
4 years, 4 months ago (2016-08-17 17:18:44 UTC) #31
mtklein
lgtm https://codereview.chromium.org/2241353002/diff/120001/src/core/SkImagePriv.h File src/core/SkImagePriv.h (right): https://codereview.chromium.org/2241353002/diff/120001/src/core/SkImagePriv.h#newcode86 src/core/SkImagePriv.h:86: * This must be balanced by an equal ...
4 years, 4 months ago (2016-08-17 17:28:11 UTC) #33
mtklein
On 2016/08/17 17:28:11, mtklein wrote: > lgtm > > https://codereview.chromium.org/2241353002/diff/120001/src/core/SkImagePriv.h > File src/core/SkImagePriv.h (right): > ...
4 years, 4 months ago (2016-08-17 17:28:52 UTC) #34
bsalomon
lgtm
4 years, 4 months ago (2016-08-17 17:30:24 UTC) #35
reed1
https://codereview.chromium.org/2241353002/diff/120001/src/core/SkImagePriv.h File src/core/SkImagePriv.h (right): https://codereview.chromium.org/2241353002/diff/120001/src/core/SkImagePriv.h#newcode86 src/core/SkImagePriv.h:86: * This must be balanced by an equal number ...
4 years, 4 months ago (2016-08-17 17:35:34 UTC) #37
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/2241353002/140001
4 years, 4 months ago (2016-08-17 17:35:47 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 18:12:37 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/2d5b7147032e3806b5895667a899440119707c2d

Powered by Google App Engine
This is Rietveld 408576698