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

Issue 2301523003: Have GrSurfaceProxys and GrGpuResources draw from the same pool of unique ids (Closed)

Created:
4 years, 3 months ago by robertphillips
Modified:
4 years, 3 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Have GrSurfaceProxys and GrGpuResources draw from the same pool of unique ids The idea here is that, for wrapped Proxy objects, we want the uniqueID to reflect that of the wrapped object. For this to work the IDs for the non-wrapped versions can't conflict with GrGpuResource's pool of IDs. Split off of: https://codereview.chromium.org/2215323003/ (Start using RenderTargetProxy (omnibus)) GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2301523003 Committed: https://skia.googlesource.com/skia/+/8abb370aca280516f4861c6c942ec453aad018fa

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : Add test #

Total comments: 4

Patch Set 4 : Address code review comments #

Patch Set 5 : update to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -68 lines) Patch
M include/gpu/GrGpuResource.h View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
M include/private/GrSurfaceProxy.h View 1 3 2 chunks +12 lines, -3 lines 0 comments Download
M include/private/GrTextureProxy.h View 1 chunk +3 lines, -6 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrRenderTargetProxy.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrSurfaceProxy.cpp View 1 chunk +0 lines, -10 lines 0 comments Download
M src/gpu/GrTextureProxy.cpp View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M src/gpu/batches/GrClearBatch.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/batches/GrClearStencilClipBatch.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/batches/GrCopySurfaceBatch.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrDiscardBatch.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/batches/GrDrawBatch.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/batches/GrStencilPathBatch.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrSingleTextureEffect.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 7 chunks +7 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLRenderTarget.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLTextureRenderTarget.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLVertexArray.cpp View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M src/gpu/instanced/GLInstancedRendering.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/text/GrStencilAndCoverTextContext.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tests/ClearTest.cpp View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M tests/ProxyTest.cpp View 1 2 3 7 chunks +12 lines, -7 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M tools/debugger/SkDebugCanvas.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (22 generated)
robertphillips
4 years, 3 months ago (2016-08-31 16:54:17 UTC) #5
bsalomon
https://codereview.chromium.org/2301523003/diff/40001/include/gpu/GrGpuResource.h File include/gpu/GrGpuResource.h (right): https://codereview.chromium.org/2301523003/diff/40001/include/gpu/GrGpuResource.h#newcode282 include/gpu/GrGpuResource.h:282: friend class GrSurfaceProxy; // for access to CreateUniqueID Is ...
4 years, 3 months ago (2016-08-31 17:53:18 UTC) #14
robertphillips
https://codereview.chromium.org/2301523003/diff/40001/include/gpu/GrGpuResource.h File include/gpu/GrGpuResource.h (right): https://codereview.chromium.org/2301523003/diff/40001/include/gpu/GrGpuResource.h#newcode282 include/gpu/GrGpuResource.h:282: friend class GrSurfaceProxy; // for access to CreateUniqueID On ...
4 years, 3 months ago (2016-08-31 19:11:38 UTC) #15
bsalomon
lgtm
4 years, 3 months ago (2016-08-31 20:27:51 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/2301523003/80001
4 years, 3 months ago (2016-08-31 21:02:45 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 21:04:10 UTC) #28
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://skia.googlesource.com/skia/+/8abb370aca280516f4861c6c942ec453aad018fa

Powered by Google App Engine
This is Rietveld 408576698