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

Issue 1778393002: add Make variations to return SkImage by sk_sp (Closed)

Created:
4 years, 9 months ago by reed1
Modified:
4 years, 9 months ago
Reviewers:
f(malita), bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

add Make variations to return SkImage by sk_sp some internal call-sites update, but not. Will follow-up in future to complete that. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1778393002 Committed: https://skia.googlesource.com/skia/+/bd73ffb83022f1f6b1997e2a91c049949e88a8a2

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : fix no-gpu build #

Patch Set 4 : fix no-gpu again #

Total comments: 15

Patch Set 5 : roll in fmalitas comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -148 lines) Patch
M include/core/SkImage.h View 1 2 3 4 9 chunks +66 lines, -34 lines 0 comments Download
M include/core/SkShader.h View 1 chunk +1 line, -1 line 0 comments Download
M src/c/sk_surface.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/core/SkPictureShader.h View 2 chunks +5 lines, -5 lines 0 comments Download
M src/core/SkPictureShader.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkReadBuffer.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
M src/core/SkShader.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M src/image/SkImage.cpp View 1 2 3 4 8 chunks +91 lines, -19 lines 1 comment Download
M src/image/SkImagePriv.h View 2 chunks +5 lines, -4 lines 0 comments Download
M src/image/SkImage_Base.h View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Generator.cpp View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
M src/image/SkImage_Gpu.h View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImage_Gpu.cpp View 7 chunks +33 lines, -31 lines 0 comments Download
M src/image/SkImage_Raster.cpp View 1 2 3 4 7 chunks +28 lines, -29 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkBitmapSourceDeserializer.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778393002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778393002/20001
4 years, 9 months ago (2016-03-10 16:10:26 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/6966)
4 years, 9 months ago (2016-03-10 16:16:17 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778393002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778393002/40001
4 years, 9 months ago (2016-03-10 16:18:16 UTC) #8
reed1
4 years, 9 months ago (2016-03-10 16:20:49 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/6984)
4 years, 9 months ago (2016-03-10 16:23:27 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778393002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778393002/60001
4 years, 9 months ago (2016-03-10 16:48:39 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 17:04:11 UTC) #16
f(malita)
https://codereview.chromium.org/1778393002/diff/60001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1778393002/diff/60001/include/core/SkImage.h#newcode76 include/core/SkImage.h:76: static sk_sp<SkImage> MakeFromGenerator(SkImageGenerator*, const SkIRect* subset = NULL); I ...
4 years, 9 months ago (2016-03-10 18:12:15 UTC) #17
reed1
https://codereview.chromium.org/1778393002/diff/60001/include/core/SkImage.h File include/core/SkImage.h (right): https://codereview.chromium.org/1778393002/diff/60001/include/core/SkImage.h#newcode76 include/core/SkImage.h:76: static sk_sp<SkImage> MakeFromGenerator(SkImageGenerator*, const SkIRect* subset = NULL); On ...
4 years, 9 months ago (2016-03-10 19:12:57 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778393002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778393002/80001
4 years, 9 months ago (2016-03-10 19:17:17 UTC) #20
f(malita)
LGTM https://codereview.chromium.org/1778393002/diff/60001/src/image/SkImage.cpp File src/image/SkImage.cpp (right): https://codereview.chromium.org/1778393002/diff/60001/src/image/SkImage.cpp#newcode159 src/image/SkImage.cpp:159: return generator ? SkImage::MakeFromGenerator(generator, subset) : nullptr; On ...
4 years, 9 months ago (2016-03-10 19:24:57 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-10 19:33:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778393002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778393002/80001
4 years, 9 months ago (2016-03-10 20:44:17 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/bd73ffb83022f1f6b1997e2a91c049949e88a8a2
4 years, 9 months ago (2016-03-10 20:45:21 UTC) #27
robertphillips
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1783063002/ by robertphillips@google.com. ...
4 years, 9 months ago (2016-03-11 00:18:35 UTC) #28
reed1
seems like it must be related to my changes to pictureshader...
4 years, 9 months ago (2016-03-11 01:54:00 UTC) #29
f(malita)
4 years, 9 months ago (2016-03-11 13:58:36 UTC) #30
Message was sent while issue was closed.
https://codereview.chromium.org/1778393002/diff/80001/src/image/SkImage.cpp
File src/image/SkImage.cpp (right):

https://codereview.chromium.org/1778393002/diff/80001/src/image/SkImage.cpp#n...
src/image/SkImage.cpp:341: return
MakeFromGenerator(SkImageGenerator::NewFromPicture(dimensions,
picture.release(),
Yeah, I think this needs to be picture.get() as SkImageGenerator::NewFromPicture
does not adopt.

(SkImage::SkImageNewFromPicture -> sk_ref_sp(picture) then we release here -> we
leak this extra ref)

Powered by Google App Engine
This is Rietveld 408576698