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

Issue 1820733004: Propagate the decoder frame premul info to SkBitmap (Closed)

Created:
4 years, 9 months ago by f(malita)
Modified:
4 years, 9 months ago
Reviewers:
xidachen, Noel Gordon, reed1
CC:
chromium-reviews, blink-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Propagate the decoder frame premul info to SkBitmap Currently ImageFrame always sets up the resulting SkBitmap as kPremul_SkAlphaType (or kOpaque_SkAlphaType in some cases), even when AlphaOption == AlphaNotPremultiplied. Update to set the correct bitmap alpha type. R=noel@chromium.org,reed@google.com,xidachen@chromium.org BUG=597035 Committed: https://crrev.com/18a861d65e82a16f8cfbc7d3f160cfb3746523e2 Cr-Commit-Position: refs/heads/master@{#382680}

Patch Set 1 #

Total comments: 14

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -8 lines) Patch
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp View 1 3 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/image-decoders/gif/GIFImageDecoderTest.cpp View 1 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
f(malita)
4 years, 9 months ago (2016-03-21 21:44:35 UTC) #2
Noel Gordon
Thanks Florin, minor nits only ... https://codereview.chromium.org/1820733004/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp File third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp (left): https://codereview.chromium.org/1820733004/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp#oldcode102 third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp:102: if (!m_bitmap.tryAllocPixels(m_allocator, 0)) ...
4 years, 9 months ago (2016-03-21 22:37:16 UTC) #3
f(malita)
https://codereview.chromium.org/1820733004/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp File third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp (left): https://codereview.chromium.org/1820733004/diff/1/third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp#oldcode102 third_party/WebKit/Source/platform/image-decoders/ImageFrame.cpp:102: if (!m_bitmap.tryAllocPixels(m_allocator, 0)) On 2016/03/21 22:37:16, noel gordon wrote: ...
4 years, 9 months ago (2016-03-21 22:46:24 UTC) #4
xidachen
This is AWESOME! Thank you so much Florin.
4 years, 9 months ago (2016-03-21 23:13:07 UTC) #5
Noel Gordon
On 2016/03/21 23:13:07, xidachen wrote: > This is AWESOME! Thank you so much Florin. @xidachen: ...
4 years, 9 months ago (2016-03-21 23:50:24 UTC) #6
Noel Gordon
On 2016/03/21 22:46:24, f(malita) wrote: Thanks Florin, and LGTM pending a BUG number, tests passing...
4 years, 9 months ago (2016-03-21 23:55:26 UTC) #7
f(malita)
On 2016/03/21 23:55:26, noel gordon wrote: > On 2016/03/21 22:46:24, f(malita) wrote: > > Thanks ...
4 years, 9 months ago (2016-03-22 21:09:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1820733004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1820733004/20001
4 years, 9 months ago (2016-03-22 21:10:19 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-22 21:16:52 UTC) #13
commit-bot: I haz the power
4 years, 9 months ago (2016-03-22 21:18:38 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/18a861d65e82a16f8cfbc7d3f160cfb3746523e2
Cr-Commit-Position: refs/heads/master@{#382680}

Powered by Google App Engine
This is Rietveld 408576698