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

Issue 331593002: Change V8VarConverter::FromV8Value to complete synchronously if possible (Closed)

Created:
6 years, 6 months ago by raymes
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Change V8VarConverter::FromV8Value to complete synchronously if possible Previously V8VarConverter::FromV8Value would always complete asynchronously (we would always post a task to the message loop to run the callback). However, this adds latency to the transmission of postMessage'd messages. It also has the unfortunate consequence that posted messages can arrive out of order with other messages (such as view changes). We should attempt to convert synchronously if possible and only resort to asynchronous conversion if needed. BUG=367896 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277374

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -49 lines) Patch
M content/renderer/pepper/message_channel.cc View 1 2 3 1 chunk +12 lines, -6 lines 0 comments Download
M content/renderer/pepper/resource_converter.h View 1 2 2 chunks +12 lines, -2 lines 0 comments Download
M content/renderer/pepper/resource_converter.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.h View 1 2 3 2 chunks +23 lines, -7 lines 0 comments Download
M content/renderer/pepper/v8_var_converter.cc View 1 2 3 1 chunk +10 lines, -9 lines 0 comments Download
M content/renderer/pepper/v8_var_converter_unittest.cc View 1 2 3 4 chunks +18 lines, -25 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
raymes
6 years, 6 months ago (2014-06-12 05:22:42 UTC) #1
dmichael (off chromium)
I switched the bug from the PDF one to the sync postMessage API one. If ...
6 years, 6 months ago (2014-06-13 17:24:49 UTC) #2
raymes
https://codereview.chromium.org/331593002/diff/40001/content/renderer/pepper/message_channel.cc File content/renderer/pepper/message_channel.cc (right): https://codereview.chromium.org/331593002/diff/40001/content/renderer/pepper/message_channel.cc#newcode297 content/renderer/pepper/message_channel.cc:297: V8VarConverter::VarConversionResult conversion_result = Done. Well caught - I didn't ...
6 years, 6 months ago (2014-06-16 02:59:25 UTC) #3
raymes
The CQ bit was checked by raymes@chromium.org
6 years, 6 months ago (2014-06-16 02:59:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/331593002/60001
6 years, 6 months ago (2014-06-16 02:59:44 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 07:23:41 UTC) #6
Message was sent while issue was closed.
Change committed as 277374

Powered by Google App Engine
This is Rietveld 408576698