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

Issue 1187523005: Add support for creating texture backed images where Skia will delete the texture. (Closed)

Created:
5 years, 6 months ago by bsalomon
Modified:
5 years, 6 months ago
Reviewers:
robertphillips, reed1
CC:
reviews_skia.org, Daniele Castagna, fmalita_google_do_not_use
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add support for creating texture backed images where Skia will delete the texture. Committed: https://skia.googlesource.com/skia/+/6dc6f5f4a153d33ed91565cb3cd397a310a937d0

Patch Set 1 #

Patch Set 2 : tiny #

Total comments: 8

Patch Set 3 : Address comments, remove support for adopted rendertargets #

Patch Set 4 : Clarify that Skia could choose to recycle the texture (but doesn't currently) #

Patch Set 5 : Add default param to support Chrome's current callers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -73 lines) Patch
M include/core/SkImage.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M include/gpu/GrGpuResource.h View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M include/gpu/GrTextureProvider.h View 1 2 3 4 1 chunk +4 lines, -6 lines 0 comments Download
M include/gpu/GrTypes.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
M include/gpu/gl/GrGLFunctions.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/gpu/gl/GrGLInterface.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrGpu.h View 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrGpu.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrGpuResourceCacheAccess.h View 1 2 1 chunk +13 lines, -1 line 0 comments Download
M src/gpu/GrResourceCache.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 chunks +19 lines, -9 lines 0 comments Download
M src/gpu/GrTexture.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTextureProvider.cpp View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLAssembleInterface.cpp View 2 chunks +2 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 3 chunks +21 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLInterface.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLPath.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLPathRange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLRenderTarget.h View 2 chunks +9 lines, -7 lines 0 comments Download
M src/gpu/gl/GrGLRenderTarget.cpp View 4 chunks +2 lines, -4 lines 0 comments Download
M src/gpu/gl/GrGLStencilAttachment.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLTexture.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/GrGLTexture.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M src/image/SkImage.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 3 chunks +21 lines, -6 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/GrPorterDuffTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/GrSurfaceTest.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 6 chunks +67 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
bsalomon
5 years, 6 months ago (2015-06-17 21:14:10 UTC) #2
bsalomon
+Florin
5 years, 6 months ago (2015-06-17 21:18:55 UTC) #3
robertphillips
lgtm + nits & questions https://codereview.chromium.org/1187523005/diff/20001/include/gpu/GrGpuResource.h File include/gpu/GrGpuResource.h (right): https://codereview.chromium.org/1187523005/diff/20001/include/gpu/GrGpuResource.h#newcode145 include/gpu/GrGpuResource.h:145: Would a set of ...
5 years, 6 months ago (2015-06-18 14:18:49 UTC) #4
reed1
api lgtm
5 years, 6 months ago (2015-06-18 15:07:42 UTC) #5
bsalomon
Added a default param to keep chrome compiling and removed the param from GrTextureProvider::createWrappedRenderTarget(). https://codereview.chromium.org/1187523005/diff/20001/include/gpu/GrGpuResource.h ...
5 years, 6 months ago (2015-06-18 15:19:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1187523005/70001
5 years, 6 months ago (2015-06-18 16:06:24 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 16:12:21 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://skia.googlesource.com/skia/+/6dc6f5f4a153d33ed91565cb3cd397a310a937d0

Powered by Google App Engine
This is Rietveld 408576698