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

Issue 10855188: media::BindToLoop() is born, with example uses to slim down WebMediaPlayerProxy. (Closed)

Created:
8 years, 4 months ago by Ami GONE FROM CHROMIUM
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org, awong
Visibility:
Public.

Description

media::BindToLoop() is born, with example uses to slim down WebMediaPlayerProxy. WMPP could use further slimming-down / flamethrowering, but this pass just removes the lowest-hanging fruit, where WMPP is used as a silent trampoline to WMPI on the render thread. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152239

Patch Set 1 #

Patch Set 2 : now with macro #

Total comments: 10

Patch Set 3 : now with tests and CallbackForward #

Total comments: 2

Patch Set 4 : . #

Total comments: 6

Patch Set 5 : . #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -93 lines) Patch
A media/base/bind_to_loop.h View 1 2 3 4 1 chunk +159 lines, -0 lines 0 comments Download
A media/base/bind_to_loop.h.pump View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
A media/base/bind_to_loop_unittest.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 3 4 5 6 chunks +13 lines, -10 lines 0 comments Download
M webkit/media/webmediaplayer_proxy.h View 1 2 3 4 5 3 chunks +0 lines, -25 lines 0 comments Download
M webkit/media/webmediaplayer_proxy.cc View 1 2 3 4 5 3 chunks +0 lines, -58 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Ami GONE FROM CHROMIUM
scherkus/acolwell: please review. ajwong: FYI. This is a semi-speculative CL. I like the resulting code ...
8 years, 4 months ago (2012-08-15 23:50:12 UTC) #1
acolwell GONE FROM CHROMIUM
Overall I like this change. The actual callback function name gets lost in all the ...
8 years, 4 months ago (2012-08-16 00:14:56 UTC) #2
Ami GONE FROM CHROMIUM
On 2012/08/16 00:14:56, acolwell wrote: > Overall I like this change. The actual callback function ...
8 years, 4 months ago (2012-08-16 03:02:46 UTC) #3
acolwell GONE FROM CHROMIUM
\o/ LGTM
8 years, 4 months ago (2012-08-16 16:05:02 UTC) #4
awong
unitests? :D https://chromiumcodereview.appspot.com/10855188/diff/1008/media/base/bind_to_loop.h File media/base/bind_to_loop.h (right): https://chromiumcodereview.appspot.com/10855188/diff/1008/media/base/bind_to_loop.h#newcode28 media/base/bind_to_loop.h:28: static void TrampolineRun( Should these be in ...
8 years, 4 months ago (2012-08-16 17:19:21 UTC) #5
scherkus (not reviewing)
+1 to what ajwong said
8 years, 4 months ago (2012-08-16 19:01:33 UTC) #6
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10855188/diff/1008/media/base/bind_to_loop.h File media/base/bind_to_loop.h (right): https://chromiumcodereview.appspot.com/10855188/diff/1008/media/base/bind_to_loop.h#newcode6 media/base/bind_to_loop.h:6: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 4 months ago (2012-08-16 20:25:53 UTC) #7
scherkus (not reviewing)
leaving it to ajwong to review the pump stuff I've got one q: it looks ...
8 years, 4 months ago (2012-08-16 22:05:49 UTC) #8
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/10855188/diff/10002/webkit/media/webmediaplayer_impl.h File webkit/media/webmediaplayer_impl.h (right): https://chromiumcodereview.appspot.com/10855188/diff/10002/webkit/media/webmediaplayer_impl.h#newcode90 webkit/media/webmediaplayer_impl.h:90: public base::SupportsWeakPtr<WebMediaPlayerImpl> { On 2012/08/16 22:05:49, scherkus wrote: > ...
8 years, 4 months ago (2012-08-16 22:11:11 UTC) #9
scherkus (not reviewing)
lgtm -- as discussed offline we can switch to factory weakptr in followup cl
8 years, 4 months ago (2012-08-16 22:13:47 UTC) #10
awong
LGTM w/nits http://codereview.chromium.org/10855188/diff/9008/media/base/bind_to_loop.h.pump File media/base/bind_to_loop.h.pump (right): http://codereview.chromium.org/10855188/diff/9008/media/base/bind_to_loop.h.pump#newcode19 media/base/bind_to_loop.h.pump:19: #include "base/callback_internal.h" // Avoid re-inventing CallbackForward/ForwardType. 80-chars ...
8 years, 4 months ago (2012-08-17 18:27:18 UTC) #11
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/10855188/diff/9008/media/base/bind_to_loop.h.pump File media/base/bind_to_loop.h.pump (right): http://codereview.chromium.org/10855188/diff/9008/media/base/bind_to_loop.h.pump#newcode19 media/base/bind_to_loop.h.pump:19: #include "base/callback_internal.h" // Avoid re-inventing CallbackForward/ForwardType. On 2012/08/17 18:27:18, ...
8 years, 4 months ago (2012-08-17 23:55:46 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/10855188/9009
8 years, 4 months ago (2012-08-18 00:51:16 UTC) #13
commit-bot: I haz the power
Failed to apply patch for webkit/media/webmediaplayer_impl.cc: While running patch -p1 --forward --force; patching file webkit/media/webmediaplayer_impl.cc ...
8 years, 4 months ago (2012-08-18 00:51:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/10855188/9
8 years, 4 months ago (2012-08-18 01:24:37 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-18 04:10:21 UTC) #16
Change committed as 152239

Powered by Google App Engine
This is Rietveld 408576698