Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(13)

Issue 1195513002: Use SkImage snapshots for ImageBufferSurface texture access (Closed)

Created:
4 years, 10 months ago by f(malita)
Modified:
4 years, 10 months ago
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, jbroman, pdr+graphicswatchlist_chromium.org, rwlbuis, robertphillips1, Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use SkImage snapshots for ImageBufferSurface texture access Instead of accessing the underlying SkCanvas device and poking at render targets directly, use the SkSurface to generate temporary SkImage snapshots, then grab texture IDs from these. The main motivation is getting rid of deprecated SkCanvas::getTopDevice() users, but SkImage wrappers also help making the texture ownership/lifetime more explicit. (API refactoring, no functional side effects expected) BUG=499001, skia:3940 R=reed@google.com,bsalomon@google.com,junov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197654

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -53 lines) Patch
M Source/platform/graphics/Canvas2DImageBufferSurface.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 1 chunk +5 lines, -9 lines 0 comments Download
M Source/platform/graphics/Canvas2DLayerBridgeTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/ImageBuffer.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M Source/platform/graphics/ImageBuffer.cpp View 1 4 chunks +20 lines, -15 lines 0 comments Download
M Source/platform/graphics/ImageBufferSurface.h View 1 2 2 chunks +8 lines, -4 lines 0 comments Download
M Source/platform/graphics/ImageBufferSurface.cpp View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/RecordingImageBufferSurface.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/platform/graphics/gpu/AcceleratedImageBufferSurface.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp View 1 1 chunk +4 lines, -8 lines 1 comment Download

Messages

Total messages: 16 (4 generated)
f(malita)
https://codereview.chromium.org/1195513002/diff/20001/Source/platform/graphics/Canvas2DLayerBridge.cpp File Source/platform/graphics/Canvas2DLayerBridge.cpp (right): https://codereview.chromium.org/1195513002/diff/20001/Source/platform/graphics/Canvas2DLayerBridge.cpp#newcode518 Source/platform/graphics/Canvas2DLayerBridge.cpp:518: if (!checkSurfaceValid()) This is the only place where getBackingTextureImage ...
4 years, 10 months ago (2015-06-18 16:33:00 UTC) #2
Justin Novosad
lgtm with nit. I think you should add comments to explain the difference between newImageSnapshot ...
4 years, 10 months ago (2015-06-22 18:22:03 UTC) #3
f(malita)
On 2015/06/22 at 18:22:03, junov wrote: > lgtm with nit. > > I think you ...
4 years, 10 months ago (2015-06-23 14:10:59 UTC) #4
reed1
brian, is this correct, that the snapshot is too heavy weight?
4 years, 10 months ago (2015-06-23 14:32:55 UTC) #5
Justin Novosad
re-lgtm
4 years, 10 months ago (2015-06-23 14:33:49 UTC) #6
f(malita)
On 2015/06/23 at 14:32:55, reed wrote: > brian, is this correct, that the snapshot is ...
4 years, 10 months ago (2015-06-23 14:35:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195513002/40001
4 years, 10 months ago (2015-06-23 14:36:03 UTC) #9
reed1
https://codereview.chromium.org/1195513002/diff/40001/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp File Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp (right): https://codereview.chromium.org/1195513002/diff/40001/Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp#newcode66 Source/platform/graphics/gpu/AcceleratedImageBufferSurface.cpp:66: // support Canvas2DLayerBridge's slightly divergent semantics. Lets document somewhere ...
4 years, 10 months ago (2015-06-23 14:38:09 UTC) #10
reed1
Junov, can you (after this CL) describe/docuemnt why we need two entry-points that return the ...
4 years, 10 months ago (2015-06-23 14:48:18 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1195513002/40001
4 years, 10 months ago (2015-06-23 14:49:33 UTC) #14
Justin Novosad
On 2015/06/23 14:48:18, reed1 wrote: > Junov, can you (after this CL) describe/docuemnt why we ...
4 years, 10 months ago (2015-06-23 14:50:56 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2015-06-23 15:13:50 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197654

Powered by Google App Engine
This is Rietveld 408576698