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

Issue 10918182: Don't require a recreation of the context when fullscreening (Closed)

Created:
8 years, 3 months ago by jbauman
Modified:
8 years, 3 months ago
Reviewers:
brettw, viettrungluu, piman
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Don't require a recreation of the context when fullscreening Instead of requiring flash to destroy and recreate its context, we can reparent its context onto the new view context (and later back again). BUG=147746 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157641

Patch Set 1 #

Patch Set 2 : fix unit tests #

Total comments: 3

Patch Set 3 : cleanup #

Total comments: 1

Patch Set 4 : remove unnecessary if #

Total comments: 1

Patch Set 5 : fix style #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -35 lines) Patch
M content/renderer/pepper/pepper_platform_context_3d_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_context_3d_impl.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_flash_fullscreen.idl View 2 chunks +18 lines, -11 lines 0 comments Download
M ppapi/c/private/ppb_flash_fullscreen.h View 5 chunks +17 lines, -14 lines 0 comments Download
M ppapi/cpp/private/flash_fullscreen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/cpp/private/flash_fullscreen.cc View 2 chunks +16 lines, -8 lines 3 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 5 chunks +12 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_fullscreen_thunk.cc View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/fullscreen_container.h View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 4 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
jbauman
8 years, 3 months ago (2012-09-12 23:12:30 UTC) #1
piman
LGTM overall, it's great that you're fixing this. I think we can make the transition ...
8 years, 3 months ago (2012-09-13 00:04:33 UTC) #2
jbauman
Ok, fixed these things. On 2012/09/13 00:04:33, piman wrote: > LGTM overall, it's great that ...
8 years, 3 months ago (2012-09-13 18:11:32 UTC) #3
piman
LGTM+nit http://codereview.chromium.org/10918182/diff/10001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10918182/diff/10001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1642 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1642: if (flash_fullscreen != flash_fullscreen_) { That test is ...
8 years, 3 months ago (2012-09-13 18:57:20 UTC) #4
jbauman
brettw: ping On 2012/09/13 18:57:20, piman wrote: > LGTM+nit > > http://codereview.chromium.org/10918182/diff/10001/webkit/plugins/ppapi/ppapi_plugin_instance.cc > File webkit/plugins/ppapi/ppapi_plugin_instance.cc ...
8 years, 3 months ago (2012-09-18 17:34:32 UTC) #5
brettw
lgtm http://codereview.chromium.org/10918182/diff/12001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/10918182/diff/12001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1644 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1644: if (flash_fullscreen) Use {} for this since the ...
8 years, 3 months ago (2012-09-18 17:56:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/10918182/15002
8 years, 3 months ago (2012-09-19 17:04:22 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build. Your ...
8 years, 3 months ago (2012-09-19 18:48:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/10918182/15002
8 years, 3 months ago (2012-09-19 21:07:35 UTC) #9
commit-bot: I haz the power
Change committed as 157641
8 years, 3 months ago (2012-09-19 22:58:54 UTC) #10
viettrungluu
8 years, 3 months ago (2012-09-20 21:13:50 UTC) #11
https://chromiumcodereview.appspot.com/10918182/diff/15002/ppapi/cpp/private/...
File ppapi/cpp/private/flash_fullscreen.cc (right):

https://chromiumcodereview.appspot.com/10918182/diff/15002/ppapi/cpp/private/...
ppapi/cpp/private/flash_fullscreen.cc:35: return
has_interface<PPB_FlashFullscreen_0_1>() &&
You should really do:

if (has_interface<PPB_FlashFullscreen_1_0>())
  return get_interface<..._1_0>...;
if (has_interface<PPB_FlashFullscreen_0_1>())
  return get_interface<..._0_1>...;
return false;

This makes it possible to actually remove support for 0.1 (in Chrome) at some
point. It also makes it easy to remove the corresponding support in the wrapper.

https://chromiumcodereview.appspot.com/10918182/diff/15002/ppapi/cpp/private/...
ppapi/cpp/private/flash_fullscreen.cc:41: if
(!has_interface<PPB_FlashFullscreen_0_1>())
"

https://chromiumcodereview.appspot.com/10918182/diff/15002/ppapi/cpp/private/...
ppapi/cpp/private/flash_fullscreen.cc:48: if
(!has_interface<PPB_FlashFullscreen_0_1>())
"

Powered by Google App Engine
This is Rietveld 408576698