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

Issue 2192903002: Add writeToMemory() API to SkColorSpace (Closed)

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

Description

Add writeToMemory() API to SkColorSpace New API mirrors the form of similar APIs in SkRegion, SkMatrix, etc. This also fixes a bug: SkImageInfo appears in a object that Chrome stores in discardable memory. So when sk_sp<SkColorSpace> was added to SkImageInfo a leak was introduced. We'll use this new method and deserialize to store the SkColorSpace in the discardable object. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2192903002 Committed: https://skia.googlesource.com/skia/+/a0605bf9d13f5758a6fa2fa366c4dc5341c2cf61

Patch Set 1 #

Patch Set 2 : writeToMemory #

Patch Set 3 : Added unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -47 lines) Patch
M include/core/SkColorSpace.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkColorSpace.cpp View 1 3 chunks +34 lines, -26 lines 0 comments Download
M tests/ColorSpaceTest.cpp View 1 2 1 chunk +33 lines, -21 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (15 generated)
msarett
4 years, 4 months ago (2016-07-28 16:14:40 UTC) #3
bsalomon
This looks like it will work for the DeferredTextureImage use case. Thanks! lgtm
4 years, 4 months ago (2016-07-28 16:18:05 UTC) #5
reed1
we call this writeToMemory in a couple of other classes (e.g. SkRegion, SkMatrix). Is there ...
4 years, 4 months ago (2016-07-28 16:18:29 UTC) #6
reed1
not sure what "discardable" and "leaking" have to do with the CL per-se
4 years, 4 months ago (2016-07-28 16:19:00 UTC) #7
msarett
On 2016/07/28 16:18:29, reed1 wrote: > we call this writeToMemory in a couple of other ...
4 years, 4 months ago (2016-07-28 16:19:11 UTC) #8
bsalomon
On 2016/07/28 16:19:00, reed1 wrote: > not sure what "discardable" and "leaking" have to do ...
4 years, 4 months ago (2016-07-28 16:21:06 UTC) #9
reed1
On 2016/07/28 16:21:06, bsalomon wrote: > On 2016/07/28 16:19:00, reed1 wrote: > > not sure ...
4 years, 4 months ago (2016-07-28 16:29:18 UTC) #12
msarett
On 2016/07/28 16:29:18, reed1 wrote: > On 2016/07/28 16:21:06, bsalomon wrote: > > On 2016/07/28 ...
4 years, 4 months ago (2016-07-28 16:31:47 UTC) #13
msarett
Added a unit test and updated the CL description.
4 years, 4 months ago (2016-07-28 16:42:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2192903002/40001
4 years, 4 months ago (2016-07-28 17:45:14 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 17:47:53 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/a0605bf9d13f5758a6fa2fa366c4dc5341c2cf61

Powered by Google App Engine
This is Rietveld 408576698