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

Issue 12277023: Define frame subscription interface and implementation on Mac (Closed)

Created:
7 years, 10 months ago by Alpha Left Google
Modified:
7 years, 9 months ago
Reviewers:
Nico, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, ncarter (slow), justinlin
Visibility:
Public.

Description

Define frame subscription interface and implementation on Mac Define RenderWidgetHostViewFrameSubscriber for listening to frame presentation events by platform frame presenter. This will enable a push model for generating captured frames from a RenderView. Also implement this on Mac. BUG=174525 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186108

Patch Set 1 #

Patch Set 2 : no change #

Total comments: 11

Patch Set 3 : second try #

Patch Set 4 : in -> on #

Patch Set 5 : callback and one framsubscriber #

Patch Set 6 : removed one header #

Total comments: 11

Patch Set 7 : base class #

Patch Set 8 : mac impl #

Patch Set 9 : mac only #

Patch Set 10 : mac impl #

Total comments: 2

Patch Set 11 : merged #

Total comments: 6

Patch Set 12 : git fetch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -8 lines) Patch
M content/browser/renderer_host/compositing_iosurface_mac.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +15 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +41 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 6 7 8 4 chunks +58 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -2 lines 0 comments Download
A content/port/browser/render_widget_host_view_frame_subscriber.h View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Alpha Left Google
7 years, 10 months ago (2013-02-16 01:50:14 UTC) #1
ncarter (slow)
https://codereview.chromium.org/12277023/diff/2001/content/port/browser/render_widget_host_view_frame_subscriber.h File content/port/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/12277023/diff/2001/content/port/browser/render_widget_host_view_frame_subscriber.h#newcode43 content/port/browser/render_widget_host_view_frame_subscriber.h:43: // media::VideoFrame::RGB32 and media::VideoFrame::YV12 are supported. Why support RGB32 ...
7 years, 10 months ago (2013-02-16 02:45:22 UTC) #2
Alpha Left Google
I see now the concerns are: 1. How to recycle VideoFrame back to WebContentsVideoCaptureDevice. 2. ...
7 years, 10 months ago (2013-02-16 06:39:22 UTC) #3
ncarter (slow)
On 2013/02/16 06:39:22, Alpha wrote: > I see now the concerns are: > > 1. ...
7 years, 10 months ago (2013-02-16 19:13:52 UTC) #4
Alpha Left Google
https://codereview.chromium.org/12277023/diff/2001/content/port/browser/render_widget_host_view_frame_subscriber.h File content/port/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/12277023/diff/2001/content/port/browser/render_widget_host_view_frame_subscriber.h#newcode43 content/port/browser/render_widget_host_view_frame_subscriber.h:43: // media::VideoFrame::RGB32 and media::VideoFrame::YV12 are supported. On 2013/02/16 02:45:22, ...
7 years, 10 months ago (2013-02-20 21:34:50 UTC) #5
Alpha Left Google
+piman Antoine: I have discussed with Nick and we are both comfortable about this interface. ...
7 years, 10 months ago (2013-02-22 19:33:27 UTC) #6
piman
https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h File content/port/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h#newcode28 content/port/browser/render_widget_host_view_frame_subscriber.h:28: // Objects of this class live on the UI ...
7 years, 10 months ago (2013-02-22 20:45:47 UTC) #7
Alpha Left Google
https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h File content/port/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h#newcode28 content/port/browser/render_widget_host_view_frame_subscriber.h:28: // Objects of this class live on the UI ...
7 years, 10 months ago (2013-02-22 21:05:38 UTC) #8
piman
https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h File content/port/browser/render_widget_host_view_frame_subscriber.h (right): https://codereview.chromium.org/12277023/diff/15001/content/port/browser/render_widget_host_view_frame_subscriber.h#newcode28 content/port/browser/render_widget_host_view_frame_subscriber.h:28: // Objects of this class live on the UI ...
7 years, 10 months ago (2013-02-22 21:18:54 UTC) #9
Alpha Left Google
> No, it doesn't in the general case. On windows, the UI thread cannot be ...
7 years, 10 months ago (2013-02-22 22:45:45 UTC) #10
ncarter (slow)
> Looks like GL doesn't support strides for glReadPixels, so having the dest > subrect ...
7 years, 10 months ago (2013-02-22 23:26:57 UTC) #11
piman
On Fri, Feb 22, 2013 at 3:26 PM, <nick@chromium.org> wrote: > Looks like GL doesn't ...
7 years, 10 months ago (2013-02-22 23:56:27 UTC) #12
ncarter (slow)
On 2013/02/22 23:56:27, piman wrote: > On Fri, Feb 22, 2013 at 3:26 PM, <mailto:nick@chromium.org> ...
7 years, 10 months ago (2013-02-23 00:08:09 UTC) #13
ncarter (slow)
On 2013/02/23 00:08:09, ncarter wrote: > On 2013/02/22 23:56:27, piman wrote: > > On Fri, ...
7 years, 10 months ago (2013-02-23 00:12:45 UTC) #14
piman
On Fri, Feb 22, 2013 at 4:08 PM, <nick@chromium.org> wrote: > On 2013/02/22 23:56:27, piman ...
7 years, 10 months ago (2013-02-23 00:44:32 UTC) #15
Alpha Left Google
Sorry for going a full circle. For Windows and Mac it is best for now ...
7 years, 10 months ago (2013-02-23 17:00:54 UTC) #16
Alpha Left Google
This is good for review now. piman: Please look at content/port/browser/* thakis: Please look at ...
7 years, 9 months ago (2013-03-02 02:17:24 UTC) #17
piman
https://codereview.chromium.org/12277023/diff/30001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/12277023/diff/30001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode454 content/browser/renderer_host/render_widget_host_view_base.cc:454: return true; Should this be false?
7 years, 9 months ago (2013-03-02 03:26:07 UTC) #18
Alpha Left Google
https://codereview.chromium.org/12277023/diff/30001/content/browser/renderer_host/render_widget_host_view_base.cc File content/browser/renderer_host/render_widget_host_view_base.cc (right): https://codereview.chromium.org/12277023/diff/30001/content/browser/renderer_host/render_widget_host_view_base.cc#newcode454 content/browser/renderer_host/render_widget_host_view_base.cc:454: return true; On 2013/03/02 03:26:08, piman wrote: > Should ...
7 years, 9 months ago (2013-03-02 05:21:24 UTC) #19
piman
lgtm
7 years, 9 months ago (2013-03-02 05:44:20 UTC) #20
Nico
This looks really good. One question about why CGLSetCurrentContext(0) was removed, other than that this ...
7 years, 9 months ago (2013-03-04 08:35:22 UTC) #21
Alpha Left Google
https://codereview.chromium.org/12277023/diff/26010/content/browser/renderer_host/compositing_iosurface_mac.mm File content/browser/renderer_host/compositing_iosurface_mac.mm (left): https://codereview.chromium.org/12277023/diff/26010/content/browser/renderer_host/compositing_iosurface_mac.mm#oldcode549 content/browser/renderer_host/compositing_iosurface_mac.mm:549: CGLSetCurrentContext(0); On 2013/03/04 08:35:22, Nico wrote: > Why is ...
7 years, 9 months ago (2013-03-04 18:43:18 UTC) #22
Nico
Ah, ok. lgtm.
7 years, 9 months ago (2013-03-04 18:44:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/12277023/24004
7 years, 9 months ago (2013-03-05 01:33:21 UTC) #24
commit-bot: I haz the power
7 years, 9 months ago (2013-03-05 06:03:01 UTC) #25
Message was sent while issue was closed.
Change committed as 186108

Powered by Google App Engine
This is Rietveld 408576698