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

Issue 3352019: Add fullscreen support to Pepper. (Closed)

Created:
10 years, 3 months ago by piman
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, brettw-cc_chromium.org, boliu, nduca
Base URL:
git://git.chromium.org/chromium.git
Visibility:
Public.

Description

Add fullscreen support to Pepper. This needs http://codereview.chromium.org/3320019/show first for the Pepper interfaces to be there. BUG=none TEST=run a pepper test application, trigger fullscreen on and off. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59440

Patch Set 1 #

Patch Set 2 : fix long lines #

Total comments: 6

Patch Set 3 : derive from RenderWidgetFullscreen #

Total comments: 8

Patch Set 4 : address review comments #

Patch Set 5 : . #

Patch Set 6 : rebase #

Total comments: 5

Patch Set 7 : git cl tree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -17 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/pepper_plugin_delegate_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/render_widget_fullscreen.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/render_widget_fullscreen.cc View 2 chunks +3 lines, -5 lines 0 comments Download
A chrome/renderer/render_widget_fullscreen_pepper.h View 1 2 3 4 5 6 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/renderer/render_widget_fullscreen_pepper.cc View 1 2 3 4 5 6 1 chunk +211 lines, -0 lines 0 comments Download
A webkit/glue/plugins/pepper_fullscreen_container.h View 1 chunk +33 lines, -0 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_delegate.h View 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_instance.h View 1 2 3 5 chunks +10 lines, -0 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_instance.cc View 1 2 3 4 5 8 chunks +70 lines, -7 lines 0 comments Download
M webkit/glue/plugins/pepper_plugin_module.cc View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/glue/plugins/pepper_webplugin_impl.cc View 1 2 3 4 5 3 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
piman
10 years, 3 months ago (2010-09-10 23:10:35 UTC) #1
darin (slow to review)
Can you explain why we need yet another RenderWidgetFullscreenPepper when we already have RenderWidgetFullscreen. Can't ...
10 years, 3 months ago (2010-09-10 23:51:47 UTC) #2
darin (slow to review)
http://codereview.chromium.org/3352019/diff/2001/3006 File chrome/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/3352019/diff/2001/3006#newcode27 chrome/renderer/render_widget_fullscreen_pepper.cc:27: // WebWidget that simply wraps the pepper plugin. please ...
10 years, 3 months ago (2010-09-10 23:54:59 UTC) #3
piman
http://codereview.chromium.org/3352019/diff/2001/3006 File chrome/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/3352019/diff/2001/3006#newcode27 chrome/renderer/render_widget_fullscreen_pepper.cc:27: // WebWidget that simply wraps the pepper plugin. On ...
10 years, 3 months ago (2010-09-11 01:00:28 UTC) #4
piman
Adding boliu in case he has comments about the modification/reuse of RenderWidgetFullscreen
10 years, 3 months ago (2010-09-11 01:01:42 UTC) #5
darin (slow to review)
On Fri, Sep 10, 2010 at 6:00 PM, <piman@chromium.org> wrote: > > http://codereview.chromium.org/3352019/diff/2001/3006 > File ...
10 years, 3 months ago (2010-09-11 06:42:20 UTC) #6
brettw
LGTM, not sure if Darin has more comments. http://codereview.chromium.org/3352019/diff/8001/9002 File chrome/renderer/pepper_plugin_delegate_impl.cc (right): http://codereview.chromium.org/3352019/diff/8001/9002#newcode645 chrome/renderer/pepper_plugin_delegate_impl.cc:645: pepper::FullscreenContainer* ...
10 years, 3 months ago (2010-09-12 16:02:49 UTC) #7
piman
Addressed comments. I'll need a LGTM on http://codereview.chromium.org/3320019/show before this can go in http://codereview.chromium.org/3352019/diff/8001/9002 File ...
10 years, 3 months ago (2010-09-13 21:09:47 UTC) #8
darin (slow to review)
no further comments from me. -darin On Sun, Sep 12, 2010 at 9:02 AM, <brettw@chromium.org> ...
10 years, 3 months ago (2010-09-13 22:16:33 UTC) #9
piman
PTAL: I rebased on t-o-t and it wasn't a trivial merge...
10 years, 3 months ago (2010-09-14 02:52:05 UTC) #10
brettw
This looks nice, LGTM http://codereview.chromium.org/3352019/diff/22001/23009 File chrome/renderer/render_widget_fullscreen_pepper.h (right): http://codereview.chromium.org/3352019/diff/22001/23009#newcode49 chrome/renderer/render_widget_fullscreen_pepper.h:49: pepper::PluginInstance* plugin_; Google style says ...
10 years, 3 months ago (2010-09-14 04:27:21 UTC) #11
darin (slow to review)
http://codereview.chromium.org/3352019/diff/22001/23008 File chrome/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/3352019/diff/22001/23008#newcode209 chrome/renderer/render_widget_fullscreen_pepper.cc:209: didInvalidateRect(gfx::Rect(size_.width(), size_.height())); i don't think this is the right ...
10 years, 3 months ago (2010-09-14 04:34:50 UTC) #12
Antoine Labour
http://codereview.chromium.org/3352019/diff/22001/23008 File chrome/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/3352019/diff/22001/23008#newcode209 chrome/renderer/render_widget_fullscreen_pepper.cc:209: didInvalidateRect(gfx::Rect(size_.width(), size_.height())); On 2010/09/14 04:34:50, darin wrote: > i ...
10 years, 3 months ago (2010-09-14 05:09:11 UTC) #13
darin (slow to review)
On Mon, Sep 13, 2010 at 10:09 PM, <piman@google.com> wrote: > > http://codereview.chromium.org/3352019/diff/22001/23008 > File ...
10 years, 3 months ago (2010-09-14 05:23:18 UTC) #14
piman
http://codereview.chromium.org/3352019/diff/22001/23008 File chrome/renderer/render_widget_fullscreen_pepper.cc (right): http://codereview.chromium.org/3352019/diff/22001/23008#newcode209 chrome/renderer/render_widget_fullscreen_pepper.cc:209: didInvalidateRect(gfx::Rect(size_.width(), size_.height())); On 2010/09/14 05:09:11, Antoine Labour wrote: > ...
10 years, 3 months ago (2010-09-14 17:35:05 UTC) #15
brettw
On Tue, Sep 14, 2010 at 10:35 AM, <piman@chromium.org> wrote: > > http://codereview.chromium.org/3352019/diff/22001/23008 > File ...
10 years, 3 months ago (2010-09-14 17:36:59 UTC) #16
darin (slow to review)
On Tue, Sep 14, 2010 at 10:35 AM, <piman@chromium.org> wrote: > > http://codereview.chromium.org/3352019/diff/22001/23008 > File ...
10 years, 3 months ago (2010-09-14 17:37:14 UTC) #17
brettw
On Tue, Sep 14, 2010 at 10:37 AM, Darin Fisher <darin@chromium.org> wrote: > On Tue, ...
10 years, 3 months ago (2010-09-14 17:49:07 UTC) #18
darin (slow to review)
10 years, 3 months ago (2010-09-14 18:00:24 UTC) #19
On Tue, Sep 14, 2010 at 10:48 AM, Brett Wilson <brettw@chromium.org> wrote:

> On Tue, Sep 14, 2010 at 10:37 AM, Darin Fisher <darin@chromium.org> wrote:
> > On Tue, Sep 14, 2010 at 10:35 AM, <piman@chromium.org> wrote:
> >>
> >> http://codereview.chromium.org/3352019/diff/22001/23008
> >> File chrome/renderer/render_widget_fullscreen_pepper.cc (right):
> >>
> >> http://codereview.chromium.org/3352019/diff/22001/23008#newcode209
> >> chrome/renderer/render_widget_fullscreen_pepper.cc:209:
> >> didInvalidateRect(gfx::Rect(size_.width(), size_.height()));
> >> On 2010/09/14 05:09:11, Antoine Labour wrote:
> >>>
> >>> On 2010/09/14 04:34:50, darin wrote:
> >>> > i don't think this is the right thing to do for composited pages
> >>
> >> given nduca's
> >>>
> >>> > recent changes.
> >>
> >>> Currently, RenderWidgetFullsceenPepper is forced to be non-composited
> >>
> >> (see above
> >>>
> >>> in PepperWidget::isAcceleratedCompositingActive). It has its own
> >>
> >> window, so I
> >>>
> >>> think this should be ok. I'll double-check.
> >>
> >>
> >>
> >> Done. Even if I enable accelerated compositing at the browser level,
> >> this still works with it disabled.
> >> The reason it's not clear it's useful to support it directly, is that
> >> this window only has 1 fullscreen widget that isn't composited at all,
> >> so all we need is a bitmap update path.
> >> That being said, once we switch to scaling the plugin instead of
> >> resizing it, it may make sense to use the accelerated compositing path.
> >
> > I was thinking about the case where the plugin uses Graphics3D as its
> > output.
>
> The most important use case is 2D for Flash right now, so I don't want
> to hold up that for the 3D case. But clearly the 3D case will be the
> long-term major use-case for full screen and we should design it so
> that it's easy to add soonish.
>
> Brett
>


Totally agree!

Powered by Google App Engine
This is Rietveld 408576698