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

Issue 2183323003: Implement resize option for createImageBitmap from ImageData (Closed)

Created:
4 years, 4 months ago by xidachen
Modified:
4 years, 4 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement resize option for createImageBitmap from ImageData In the case of ImageData, we use two different code path for the following two cases: 1). ImageBitmapOptions.premultiplyAlpha = true 2). ImageBitmapOptions.premultiplyAlpha = false In the first case, we create a SkSurface and draw the original SkImage onto it for resizing. In the second case, we call scalePixels on the original SkImage. BUG=627855 Committed: https://crrev.com/5c5fa614b44d8133ab31280b67fe33638621a192 Cr-Commit-Position: refs/heads/master@{#408402}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -15 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-resize.html View 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 4 chunks +49 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
xidachen
PTAL
4 years, 4 months ago (2016-07-27 12:37:24 UTC) #2
Justin Novosad
https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode368 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:368: SkImageInfo resizedInfo = SkImageInfo::Make(resizeWidth, resizeHeight, kBGRA_8888_SkColorType, kUnpremul_SkAlphaType); Why BGRA ...
4 years, 4 months ago (2016-07-27 17:05:06 UTC) #3
xidachen
https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode368 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:368: SkImageInfo resizedInfo = SkImageInfo::Make(resizeWidth, resizeHeight, kBGRA_8888_SkColorType, kUnpremul_SkAlphaType); On 2016/07/27 ...
4 years, 4 months ago (2016-07-28 13:21:16 UTC) #4
Justin Novosad
On 2016/07/28 13:21:16, xidachen wrote: > https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp > File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): > > https://codereview.chromium.org/2183323003/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode368 > ...
4 years, 4 months ago (2016-07-28 14:35:42 UTC) #5
Justin Novosad
> Yeah... let's save this for a potential follow-up CL. Please file a bug for ...
4 years, 4 months ago (2016-07-28 14:35:57 UTC) #6
xidachen
On 2016/07/28 14:35:57, Justin Novosad wrote: > > Yeah... let's save this for a potential ...
4 years, 4 months ago (2016-07-28 14:58:41 UTC) #9
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/2183323003/20001
4 years, 4 months ago (2016-07-28 15:40:40 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-28 15:44:02 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 15:46:12 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5c5fa614b44d8133ab31280b67fe33638621a192
Cr-Commit-Position: refs/heads/master@{#408402}

Powered by Google App Engine
This is Rietveld 408576698