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

Issue 1556333004: take gr-context parameter to refEncoded, indicating a desire for only gpu-specific formats (Closed)

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

take gr-context parameter to refEncoded, indicating a desire for only gpu-specific formats Prime motivator: - we always call refEncoded on the generator when trying to upload - we call it *before* we ask for raster or YUV - for blink, this call can be very slow, as they have to cons-up their SkData the first time (and grab a mutex to do it) - this parameter will indicate to them that we're only interested in gpu formats, which they will know if they have. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1556333004 Committed: https://skia.googlesource.com/skia/+/05dd251e5e135626d170b9e77eb64729bd482169

Patch Set 1 #

Total comments: 2

Patch Set 2 : update dox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -18 lines) Patch
M include/core/SkImageGenerator.h View 1 3 chunks +17 lines, -3 lines 0 comments Download
M src/core/SkImageCacherator.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/core/SkImageCacherator.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/core/SkImageGenerator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M src/image/SkImage_Base.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/image/SkImage_Generator.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ports/SkImageGenerator_skia.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (8 generated)
reed1
ptal -- both at the impl (pretty simple) and the API contract
4 years, 11 months ago (2016-01-05 15:51:01 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556333004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556333004/1
4 years, 11 months ago (2016-01-05 15:51:20 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-05 16:06:47 UTC) #8
bsalomon
Seems ok to me.
4 years, 11 months ago (2016-01-05 16:07:27 UTC) #9
reed1
I could pass an enum instead, but I'm betting on the client possibly wanting to ...
4 years, 11 months ago (2016-01-05 16:11:02 UTC) #10
robertphillips
lgtm https://codereview.chromium.org/1556333004/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1556333004/diff/1/include/core/SkImageGenerator.h#newcode73 include/core/SkImageGenerator.h:73: * of this data. doc 'ctx' param ?
4 years, 11 months ago (2016-01-05 16:25:49 UTC) #11
reed1
https://codereview.chromium.org/1556333004/diff/1/include/core/SkImageGenerator.h File include/core/SkImageGenerator.h (right): https://codereview.chromium.org/1556333004/diff/1/include/core/SkImageGenerator.h#newcode73 include/core/SkImageGenerator.h:73: * of this data. On 2016/01/05 16:25:49, robertphillips wrote: ...
4 years, 11 months ago (2016-01-05 17:00:15 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1556333004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1556333004/20001
4 years, 11 months ago (2016-01-05 17:00:29 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/05dd251e5e135626d170b9e77eb64729bd482169
4 years, 11 months ago (2016-01-05 17:16:22 UTC) #17
scroggo
On 2016/01/05 16:11:02, reed1 wrote: > I could pass an enum instead, but I'm betting ...
4 years, 11 months ago (2016-01-05 18:02:16 UTC) #18
reed1
Today, as documented, they should only check for non-null.
4 years, 11 months ago (2016-01-05 18:14:57 UTC) #19
scroggo
On 2016/01/05 18:14:57, reed1 wrote: > Today, as documented, they should only check for non-null. ...
4 years, 11 months ago (2016-01-05 19:02:22 UTC) #20
reed1
4 years, 11 months ago (2016-01-05 20:27:45 UTC) #21
Message was sent while issue was closed.
On 2016/01/05 19:02:22, scroggo wrote:
> On 2016/01/05 18:14:57, reed1 wrote:
> > Today, as documented, they should only check for non-null.
> 
> Should we defensively make the param const?

no idea

I'm sure we can change the parameter type (again) as needed :)

Powered by Google App Engine
This is Rietveld 408576698