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

Issue 1423513005: Reland of: Make Imagebitmap Transferable (Closed)

Created:
5 years, 1 month ago by xidachen
Modified:
5 years, 1 month ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, oilpan-reviews, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, vmpstr+blinkwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of: Make Imagebitmap Transferable This CL including a layout test that does 2 things: 1. transfer an ImageBitmap to the worker and let worker transfer back to main, the main thread exam the transfered-back ImageBitmap to make sure the data is the same as the original ImageBitmap. 2. When worker receives the ImageBitmap from main, worker calls createImageBitmap() to create a new ImageBitmap and send it back to main BUG=532142 Committed: https://crrev.com/33126b69207406348d90d088364d66023c1d9500 Cr-Commit-Position: refs/heads/master@{#361124}

Patch Set 1 #

Total comments: 10

Patch Set 2 : rebase and issue fixing #

Total comments: 2

Patch Set 3 : fix vector pre-allocation issue #

Total comments: 6

Patch Set 4 : rebase and better binding code #

Patch Set 5 : changing SkImage-->StaticBitmapImage under bindings/ #

Patch Set 6 : remove include "StaticBitmapImage.h" #

Patch Set 7 : should-work code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+357 lines, -57 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable.html View 1 chunk +94 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/canvas-ImageBitmap-transferable-expected.txt View 1 chunk +39 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h View 1 2 3 4 9 chunks +13 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.cpp View 1 2 3 4 5 10 chunks +69 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializationTag.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.h View 1 2 3 4 5 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp View 1 2 3 4 5 6 5 chunks +38 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.h View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueFactory.cpp View 7 chunks +19 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/SerializedScriptValueTest.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/templates/methods.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/ImageBitmap.cpp View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSerializedScriptValue.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (5 generated)
xidachen
Hi, Please review this CL. The previous version of CL is: https://codereview.chromium.org/1409243005/ Thank you.
5 years, 1 month ago (2015-11-06 18:12:46 UTC) #3
haraken
bindings/ LGTM
5 years, 1 month ago (2015-11-07 01:13:18 UTC) #5
jochen (gone - plz use gerrit)
what changed?
5 years, 1 month ago (2015-11-07 06:29:05 UTC) #6
xidachen
On 2015/11/07 06:29:05, jochen (slow - traveling) wrote: > what changed? In another CL here: ...
5 years, 1 month ago (2015-11-07 17:30:59 UTC) #7
Justin Novosad
On 2015/11/07 17:30:59, xidachen wrote: > On 2015/11/07 06:29:05, jochen (slow - traveling) wrote: > ...
5 years, 1 month ago (2015-11-08 22:23:47 UTC) #8
sof
https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h (right): https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h#newcode12 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h:12: #include "core/frame/ImageBitmap.h" This #include isn't needed any longer? https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp ...
5 years, 1 month ago (2015-11-09 12:25:54 UTC) #9
Justin Novosad
https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp File third_party/WebKit/Source/core/frame/ImageBitmap.cpp (right): https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/core/frame/ImageBitmap.cpp#newcode97 third_party/WebKit/Source/core/frame/ImageBitmap.cpp:97: return m_image.release(); From the postMessage spec: "If any object ...
5 years, 1 month ago (2015-11-11 05:29:08 UTC) #10
xidachen
To junov&sof: Thanks for the comments. I have fixed all the issues. https://codereview.chromium.org/1423513005/diff/1/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h ...
5 years, 1 month ago (2015-11-16 18:00:51 UTC) #11
Justin Novosad
lgtm for Source/core
5 years, 1 month ago (2015-11-16 18:11:41 UTC) #12
sof
The simplifications already made to ImageBitmap (which passed me by at the time) are really ...
5 years, 1 month ago (2015-11-16 19:22:34 UTC) #13
xidachen
https://codereview.chromium.org/1423513005/diff/20001/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp File third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp (right): https://codereview.chromium.org/1423513005/diff/20001/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp#newcode119 third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp:119: for (size_t i = 0; i < imageBitmaps.size(); i++) ...
5 years, 1 month ago (2015-11-16 20:15:51 UTC) #14
sof
lgtm; haraken@ may want to have a final bindings/ look? https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.h File third_party/WebKit/Source/core/frame/ImageBitmap.h (right): https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/core/frame/ImageBitmap.h#newcode72 ...
5 years, 1 month ago (2015-11-16 20:56:17 UTC) #15
haraken
https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h (right): https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h#newcode12 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h:12: #include "third_party/skia/include/core/SkImage.h" Do we want to allow this include? ...
5 years, 1 month ago (2015-11-16 23:40:44 UTC) #16
xidachen
https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h (right): https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h#newcode12 third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h:12: #include "third_party/skia/include/core/SkImage.h" On 2015/11/16 23:40:44, haraken wrote: > > ...
5 years, 1 month ago (2015-11-17 15:24:27 UTC) #17
Justin Novosad
On 2015/11/17 15:24:27, xidachen wrote: > https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h > File third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h (right): > > https://codereview.chromium.org/1423513005/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptValueSerializer.h#newcode12 > ...
5 years, 1 month ago (2015-11-17 15:31:09 UTC) #18
haraken
On 2015/11/17 15:31:09, Justin Novosad wrote: > On 2015/11/17 15:24:27, xidachen wrote: > > > ...
5 years, 1 month ago (2015-11-17 23:27:51 UTC) #19
xidachen
haraken@: Could you take a look at this patch? I have changed code under bindings/ ...
5 years, 1 month ago (2015-11-23 03:23:25 UTC) #20
haraken
bindings/ LGTM
5 years, 1 month ago (2015-11-23 03:48:27 UTC) #21
Justin Novosad
On 2015/11/23 03:48:27, haraken wrote: > bindings/ LGTM lgtm for core/
5 years, 1 month ago (2015-11-23 15:01:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423513005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423513005/120001
5 years, 1 month ago (2015-11-23 15:04:22 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-11-23 16:41:05 UTC) #26
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 16:41:48 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/33126b69207406348d90d088364d66023c1d9500
Cr-Commit-Position: refs/heads/master@{#361124}

Powered by Google App Engine
This is Rietveld 408576698