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

Issue 608883003: GrResourceCache2 manages scratch texture. (Closed)

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

Description

GrResourceCache2 manages scratch texture. BUG=skia:2889 Committed: https://skia.googlesource.com/skia/+/bcf0a52d4f4221b158e68a06ba0c4cc4db011060

Patch Set 1 #

Patch Set 2 : minor #

Patch Set 3 : fix detach() #

Patch Set 4 : more #

Patch Set 5 : move scratch resource to mru slot when used. #

Patch Set 6 : delete more #

Patch Set 7 : delete GrUnlockAndUnrefCachedBitmapTexture #

Patch Set 8 : minor cleanup #

Patch Set 9 : Add tests to ignore-tests.txt #

Patch Set 10 : wrap line and delete unneeded friends #

Total comments: 28

Patch Set 11 : Address comments #

Patch Set 12 : tiny comment change. #

Patch Set 13 : rebase #

Patch Set 14 : rebase #

Patch Set 15 : rebase and try again #

Patch Set 16 : rebase #

Patch Set 17 : Hack for clip mask cache #

Patch Set 18 : fix and document hack #

Total comments: 8

Patch Set 19 : change hack param to bool, rebase, fix comment #

Patch Set 20 : wrap line, revert ignored-tests.txt changes #

Patch Set 21 : address comments #

Patch Set 22 : rebase and incorporate https://codereview.chromium.org/637923002/ #

Patch Set 23 : remove todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -771 lines) Patch
M bench/GrResourceCacheBench.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +3 lines, -2 lines 0 comments Download
M gm/texturedomaineffect.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M gm/yuvtorgbeffect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +34 lines, -36 lines 0 comments Download
M include/gpu/GrContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +20 lines, -37 lines 0 comments Download
M include/gpu/GrGpuResource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 8 chunks +45 lines, -35 lines 0 comments Download
M include/gpu/GrGpuResourceRef.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +16 lines, -16 lines 0 comments Download
M include/gpu/GrTexture.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -2 lines 0 comments Download
M include/gpu/GrTypesPriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +9 lines, -0 lines 0 comments Download
M include/gpu/SkGr.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M include/gpu/SkGrPixelRef.h View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M src/core/SkBitmapProcShader.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M src/effects/SkPerlinNoiseShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -15 lines 0 comments Download
M src/effects/SkTableColorFilter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -12 lines 0 comments Download
M src/effects/gradients/SkGradientShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -6 lines 0 comments Download
M src/gpu/GrClipMaskCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +51 lines, -158 lines 0 comments Download
M src/gpu/GrDrawState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +14 lines, -1 line 0 comments Download
M src/gpu/GrGpuResourceRef.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +11 lines, -11 lines 0 comments Download
M src/gpu/GrInOrderDrawBuffer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +8 lines, -8 lines 0 comments Download
M src/gpu/GrLayerCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/GrOptDrawState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrResourceCache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +31 lines, -76 lines 0 comments Download
M src/gpu/GrResourceCache.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 12 chunks +59 lines, -172 lines 0 comments Download
M src/gpu/GrResourceCache2.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/GrResourceCache2.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +31 lines, -1 line 0 comments Download
M src/gpu/GrTexture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 5 chunks +2 lines, -43 lines 0 comments Download
M src/gpu/GrTextureAccess.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/GrTexturePriv.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 6 chunks +24 lines, -39 lines 0 comments Download
M src/gpu/SkGr.cpp View 1 2 3 4 5 6 16 17 18 2 chunks +3 lines, -10 lines 0 comments Download
M src/gpu/SkGrPixelRef.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +1 line, -10 lines 0 comments Download
M src/gpu/effects/GrTextureStripAtlas.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +6 lines, -8 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 7 chunks +8 lines, -37 lines 0 comments Download

Messages

Total messages: 34 (10 generated)
bsalomon
Not polished and ready for a thorough review yet, but this passes all unit tests ...
6 years, 2 months ago (2014-09-26 22:10:41 UTC) #2
bsalomon
Now that I've deleted a lot more code, I think this is ready for review. ...
6 years, 2 months ago (2014-09-28 16:06:03 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/180001
6 years, 2 months ago (2014-09-28 16:07:47 UTC) #5
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-09-28 16:07:49 UTC) #6
commit-bot: I haz the power
Failed to apply patch for include/gpu/GrContext.h: While running git apply --index -3 -p1; error: patch ...
6 years, 2 months ago (2014-09-28 16:08:16 UTC) #8
bsalomon
Oops, forgot that is dependent on https://codereview.chromium.org/596053002/ landing first.
6 years, 2 months ago (2014-09-28 18:17:01 UTC) #9
robertphillips
https://codereview.chromium.org/608883003/diff/180001/gm/texturedomaineffect.cpp File gm/texturedomaineffect.cpp (right): https://codereview.chromium.org/608883003/diff/180001/gm/texturedomaineffect.cpp#newcode95 gm/texturedomaineffect.cpp:95: SkAutoTUnref<GrTexture> texture(GrRefCachedBitmapTexture(context, fBmp, NULL)); NULL == texture ? https://codereview.chromium.org/608883003/diff/180001/gm/yuvtorgbeffect.cpp ...
6 years, 2 months ago (2014-09-29 15:25:08 UTC) #10
bsalomon
https://codereview.chromium.org/608883003/diff/180001/gm/texturedomaineffect.cpp File gm/texturedomaineffect.cpp (right): https://codereview.chromium.org/608883003/diff/180001/gm/texturedomaineffect.cpp#newcode96 gm/texturedomaineffect.cpp:96: if (!texture) { It's an AutoTUnref, not a ptr, ...
6 years, 2 months ago (2014-09-29 19:58:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/260001
6 years, 2 months ago (2014-09-30 01:59:19 UTC) #13
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 2 months ago (2014-09-30 01:59:23 UTC) #14
robertphillips
lgtm
6 years, 2 months ago (2014-09-30 13:01:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/260001
6 years, 2 months ago (2014-09-30 13:01:52 UTC) #18
commit-bot: I haz the power
Committed patchset #14 (id:260001) as 3d398c876440deaab39bbf2a9b881c337e6dc8d4
6 years, 2 months ago (2014-09-30 13:02:28 UTC) #19
robertphillips
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/611383003/ by robertphillips@google.com. ...
6 years, 2 months ago (2014-09-30 13:53:31 UTC) #20
bsalomon
Rob, I figured out why this was regressing. The rule that only extant regular refs ...
6 years, 2 months ago (2014-10-07 04:07:55 UTC) #21
bsalomon
Rob, I figured out why this was regressing. The rule that only extant regular refs ...
6 years, 2 months ago (2014-10-07 04:07:57 UTC) #22
robertphillips
lgtm + some nits https://codereview.chromium.org/608883003/diff/330001/gm/yuvtorgbeffect.cpp File gm/yuvtorgbeffect.cpp (right): https://codereview.chromium.org/608883003/diff/330001/gm/yuvtorgbeffect.cpp#newcode101 gm/yuvtorgbeffect.cpp:101: SkRect renderRect = SkRect::MakeWH(SkIntToScalar(fBmp[0].width()), extra ...
6 years, 2 months ago (2014-10-07 13:59:35 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/370001
6 years, 2 months ago (2014-10-07 14:14:18 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/390001
6 years, 2 months ago (2014-10-07 14:20:13 UTC) #28
bsalomon
https://codereview.chromium.org/608883003/diff/330001/src/gpu/GrResourceCache2.cpp File src/gpu/GrResourceCache2.cpp (right): https://codereview.chromium.org/608883003/diff/330001/src/gpu/GrResourceCache2.cpp#newcode65 src/gpu/GrResourceCache2.cpp:65: if (fFlags) { On 2014/10/07 13:59:34, robertphillips wrote: > ...
6 years, 2 months ago (2014-10-07 14:20:14 UTC) #29
commit-bot: I haz the power
Committed patchset #21 (id:390001) as d14e1a27643125bfef37fa0ed314b64c1fae22b7
6 years, 2 months ago (2014-10-07 14:27:12 UTC) #30
bsalomon
A revert of this CL (patchset #21 id:390001) has been created in https://codereview.chromium.org/634043003/ by bsalomon@google.com. ...
6 years, 2 months ago (2014-10-07 19:02:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/608883003/430001
6 years, 2 months ago (2014-10-08 15:32:49 UTC) #33
commit-bot: I haz the power
6 years, 2 months ago (2014-10-08 15:40:15 UTC) #34
Message was sent while issue was closed.
Committed patchset #23 (id:430001) as bcf0a52d4f4221b158e68a06ba0c4cc4db011060

Powered by Google App Engine
This is Rietveld 408576698