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

Issue 223903007: Add option to SkDecodingImageGenerator to require unpremul. (Closed)

Created:
6 years, 8 months ago by scroggo
Modified:
6 years, 8 months ago
Reviewers:
hal.canary, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Add option to SkDecodingImageGenerator to require unpremul. Android needs to be able to set unpremul for purgeable pixelRefs. Once Android switches to the new interface, we can delete SkImageRef. Bug=skia:2389 Committed: http://code.google.com/p/skia/source/detail?r=14084

Patch Set 1 #

Patch Set 2 : Rebase, leave headers in src/ for now. #

Total comments: 2

Patch Set 3 : Store unpremul in the info rather than a bool. #

Patch Set 4 : Match surrounding code line length. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -3 lines) Patch
M src/images/SkDecodingImageGenerator.h View 1 1 chunk +18 lines, -3 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
scroggo
6 years, 8 months ago (2014-04-03 20:27:04 UTC) #1
scroggo
I discussed this with Hal, and he pointed out that ashmem is handled by SkDiscardableMemory::Create, ...
6 years, 8 months ago (2014-04-03 20:49:50 UTC) #2
hal.canary
After https://codereview.chromium.org/223403012, you can go ahead and move SkDiscardableMemoryPool.h as well as SkDiscardableMemory.h into include/ ...
6 years, 8 months ago (2014-04-04 17:49:30 UTC) #3
reed1
Not sure what issue this fixes for android.
6 years, 8 months ago (2014-04-07 13:22:06 UTC) #4
scroggo
On 2014/04/07 13:22:06, reed1 wrote: > Not sure what issue this fixes for android. This ...
6 years, 8 months ago (2014-04-07 13:29:00 UTC) #5
hal.canary
On 2014/04/07 13:22:06, reed1 wrote: > Not sure what issue this fixes for android. I ...
6 years, 8 months ago (2014-04-07 13:30:27 UTC) #6
scroggo
On 2014/04/07 13:30:27, Hal Canary wrote: > On 2014/04/07 13:22:06, reed1 wrote: > > Not ...
6 years, 8 months ago (2014-04-07 13:32:58 UTC) #7
reed1
Maybe this publicization is correct, but if it is only for android, I'm fine for ...
6 years, 8 months ago (2014-04-07 14:40:37 UTC) #8
scroggo
On 2014/04/07 14:40:37, reed1 wrote: > Maybe this publicization is correct, but if it is ...
6 years, 8 months ago (2014-04-07 18:16:39 UTC) #9
reed1
https://codereview.chromium.org/223903007/diff/10001/src/images/SkDecodingImageGenerator.cpp File src/images/SkDecodingImageGenerator.cpp (right): https://codereview.chromium.org/223903007/diff/10001/src/images/SkDecodingImageGenerator.cpp#newcode38 src/images/SkDecodingImageGenerator.cpp:38: const bool fRequireUnpremul; why isn't this deducible from fInfo?
6 years, 8 months ago (2014-04-07 18:21:12 UTC) #10
scroggo
https://codereview.chromium.org/223903007/diff/10001/src/images/SkDecodingImageGenerator.cpp File src/images/SkDecodingImageGenerator.cpp (right): https://codereview.chromium.org/223903007/diff/10001/src/images/SkDecodingImageGenerator.cpp#newcode38 src/images/SkDecodingImageGenerator.cpp:38: const bool fRequireUnpremul; On 2014/04/07 18:21:12, reed1 wrote: > ...
6 years, 8 months ago (2014-04-07 19:00:12 UTC) #11
reed1
lgtm
6 years, 8 months ago (2014-04-07 19:55:22 UTC) #12
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 8 months ago (2014-04-07 21:10:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/223903007/50001
6 years, 8 months ago (2014-04-07 21:10:13 UTC) #14
commit-bot: I haz the power
6 years, 8 months ago (2014-04-07 21:37:39 UTC) #15
Message was sent while issue was closed.
Change committed as 14084

Powered by Google App Engine
This is Rietveld 408576698