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

Issue 1776693002: Add deferred texture upload API. (Closed)

Created:
4 years, 9 months ago by bsalomon
Modified:
4 years, 9 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

Add deferred texture upload API. Performs thread-safe decoding of SkImage in order to later create a texture-backed SkImage. The client allocates storage for the data. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776693002 Committed: https://skia.googlesource.com/skia/+/41b952c296e343eeabb07d52b6a55ba7565a286b

Patch Set 1 #

Total comments: 28

Patch Set 2 : Address comments #

Patch Set 3 : cleanup #

Patch Set 4 : Simplify interface #

Patch Set 5 : cleanup and no gpu building again #

Patch Set 6 : rebase on pixmap change #

Total comments: 8

Patch Set 7 : simplify usage params, remove img id, fix comments #

Total comments: 2

Patch Set 8 : rebase on sk_skp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -22 lines) Patch
M include/core/SkImage.h View 1 2 3 4 5 6 7 3 chunks +40 lines, -0 lines 0 comments Download
M include/core/SkPixmap.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M include/gpu/GrContext.h View 1 5 chunks +43 lines, -19 lines 0 comments Download
M src/core/SkPixmap.cpp View 1 chunk +11 lines, -3 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 6 7 1 chunk +113 lines, -0 lines 0 comments Download
M tests/ImageTest.cpp View 1 2 3 4 5 6 7 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (8 generated)
bsalomon
The intended use case is threaded decode for GPU rasterization in Chromium. This is mostly ...
4 years, 9 months ago (2016-03-08 15:13:17 UTC) #3
reed1
1. Perhaps we just return a bool, instead of another faux object? 2. Bikeshed: do ...
4 years, 9 months ago (2016-03-08 16:03:28 UTC) #4
reed1
3. something about alignment requirements on the provided storage
4 years, 9 months ago (2016-03-08 16:03:48 UTC) #5
reed1
I like the pixmap changes, and the NewTextureFromPixmap as is. Feel free to land those ...
4 years, 9 months ago (2016-03-08 16:04:24 UTC) #6
robertphillips
https://codereview.chromium.org/1776693002/diff/1/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/1/include/core/SkImage.h#newcode323 include/core/SkImage.h:323: * performed. Constructing one of these does not make ...
4 years, 9 months ago (2016-03-08 18:43:10 UTC) #7
bsalomon
Eric please take a look and see if this will work for you. https://codereview.chromium.org/1776693002/diff/1/include/core/SkImage.h File ...
4 years, 9 months ago (2016-03-08 19:49:32 UTC) #9
bsalomon
On 2016/03/08 16:03:48, reed1 wrote: > 3. something about alignment requirements on the provided storage ...
4 years, 9 months ago (2016-03-08 19:50:14 UTC) #10
bsalomon
On 2016/03/08 16:03:28, reed1 wrote: > 1. Perhaps we just return a bool, instead of ...
4 years, 9 months ago (2016-03-08 19:50:31 UTC) #11
ericrk
This API will definitely work for my use cases. A few thoughts: Passing a void* ...
4 years, 9 months ago (2016-03-08 21:27:43 UTC) #12
bsalomon
On 2016/03/08 21:27:43, ericrk wrote: > This API will definitely work for my use cases. ...
4 years, 9 months ago (2016-03-08 21:48:18 UTC) #13
bsalomon
Updated to simplify the API (pass null to get size, non-null to get data)
4 years, 9 months ago (2016-03-09 15:06:15 UTC) #14
reed1
api lgtm What (should) happens if the src image is already GPU backed? It looks ...
4 years, 9 months ago (2016-03-09 15:18:12 UTC) #15
reed1
Similar questions about pictured-backed src images (which certainly *can* give you raster if you want ...
4 years, 9 months ago (2016-03-09 15:20:17 UTC) #16
bsalomon
On 2016/03/09 15:20:17, reed1 wrote: > Similar questions about pictured-backed src images (which certainly *can* ...
4 years, 9 months ago (2016-03-09 15:38:04 UTC) #17
bsalomon
On 2016/03/09 15:38:04, bsalomon wrote: > On 2016/03/09 15:20:17, reed1 wrote: > > Similar questions ...
4 years, 9 months ago (2016-03-09 15:43:05 UTC) #18
bsalomon
Rebased after pulling NewTextureFromPixmap into its own CL.
4 years, 9 months ago (2016-03-09 16:53:52 UTC) #19
reed1
https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h#newcode322 include/core/SkImage.h:322: SkMatrix fViewMatrix; ViewMatrix is not really a term we ...
4 years, 9 months ago (2016-03-09 18:28:41 UTC) #20
bsalomon
https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h#newcode322 include/core/SkImage.h:322: SkMatrix fViewMatrix; On 2016/03/09 18:28:41, reed1 wrote: > ViewMatrix ...
4 years, 9 months ago (2016-03-09 18:35:21 UTC) #21
robertphillips
https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h#newcode335 include/core/SkImage.h:335: * to for -> for ? https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h#newcode353 include/core/SkImage.h:353: /** ...
4 years, 9 months ago (2016-03-09 18:54:16 UTC) #22
ericrk
Quick question - in our bookkeeping in CC we currently combine the src>dst transform and ...
4 years, 9 months ago (2016-03-09 19:03:46 UTC) #23
bsalomon
On 2016/03/09 19:03:46, ericrk wrote: > Quick question - in our bookkeeping in CC we ...
4 years, 9 months ago (2016-03-09 19:06:52 UTC) #24
reed1
Removing fDst is slightly preferable too -- less to document, nothing is overspecified.
4 years, 9 months ago (2016-03-09 19:09:50 UTC) #25
bsalomon
On 2016/03/09 19:06:52, bsalomon wrote: > On 2016/03/09 19:03:46, ericrk wrote: > > Quick question ...
4 years, 9 months ago (2016-03-09 19:10:32 UTC) #26
ericrk
On 2016/03/09 19:10:32, bsalomon wrote: > On 2016/03/09 19:06:52, bsalomon wrote: > > On 2016/03/09 ...
4 years, 9 months ago (2016-03-09 19:11:32 UTC) #27
bsalomon
On 2016/03/09 19:11:32, ericrk wrote: > On 2016/03/09 19:10:32, bsalomon wrote: > > On 2016/03/09 ...
4 years, 9 months ago (2016-03-10 15:25:42 UTC) #28
bsalomon
Latest change simplifies the usage params. https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/100001/include/core/SkImage.h#newcode335 include/core/SkImage.h:335: * On 2016/03/09 ...
4 years, 9 months ago (2016-03-10 15:30:07 UTC) #29
bsalomon
Is this good to go?
4 years, 9 months ago (2016-03-10 21:31:42 UTC) #30
reed1
still lgtm https://codereview.chromium.org/1776693002/diff/120001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/120001/include/core/SkImage.h#newcode361 include/core/SkImage.h:361: * The context must be the context ...
4 years, 9 months ago (2016-03-10 21:34:12 UTC) #31
bsalomon
https://codereview.chromium.org/1776693002/diff/120001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1776693002/diff/120001/include/core/SkImage.h#newcode361 include/core/SkImage.h:361: * The context must be the context that provided ...
4 years, 9 months ago (2016-03-10 21:37:46 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776693002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776693002/120001
4 years, 9 months ago (2016-03-10 22:04:17 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/1124)
4 years, 9 months ago (2016-03-10 22:05:26 UTC) #36
ericrk
lgtm on my end as well.
4 years, 9 months ago (2016-03-11 01:04:48 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1776693002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1776693002/140001
4 years, 9 months ago (2016-03-11 14:32:56 UTC) #40
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 14:46:36 UTC) #42
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/41b952c296e343eeabb07d52b6a55ba7565a286b

Powered by Google App Engine
This is Rietveld 408576698