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

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed)

Created:
8 years, 7 months ago by (scshunt)
Modified:
8 years, 6 months ago
Reviewers:
Fady Samuel, brettw, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch-content_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, which is a separate patch. Known bugs: Not all aspects of context sharing work properly; in no models would render although the background animated properly. Requires a separate WebKit patch: https://bugs.webkit.org/show_bug.cgi?id=86504 R=fsamuel@chromium.org,piman@chromium.org,brettw@chromium.org BUG=None TEST=compiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139385

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments; remove createOffscreenGraphicsContext3D #

Total comments: 18

Patch Set 3 : Address comments; clean up; fix bugs. #

Total comments: 5

Patch Set 4 : Un-changing guest_to_embedder_channel #

Patch Set 5 : Bring up to date #

Patch Set 6 : Implement GLES2Implementation sharing #

Total comments: 2

Patch Set 7 : Nits picked #

Total comments: 2

Patch Set 8 : Shuffle EnterResource back out of the thunk layer #

Total comments: 6

Patch Set 9 : Clean up stray lines. #

Patch Set 10 : Fix stray include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -38 lines) Patch
M content/renderer/browser_plugin/guest_to_embedder_channel.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_platform_context_3d_impl.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_platform_context_3d_impl.cc View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_graphics_3d_proxy.cc View 1 2 3 4 5 6 7 5 chunks +23 lines, -10 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M ppapi/shared_impl/ppb_graphics_3d_shared.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppb_graphics_3d_shared.cc View 1 2 3 4 5 6 2 chunks +5 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_3d_impl.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_3d_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +37 lines, -10 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
(scshunt)
8 years, 7 months ago (2012-05-15 18:55:31 UTC) #1
piman
You'll probably want to take out the webkitplatformsupport_impl.h change from this CL. For the pepper ...
8 years, 7 months ago (2012-05-15 20:59:15 UTC) #2
(scshunt)
https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h File content/common/webkitplatformsupport_impl.h (right): https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h#newcode43 content/common/webkitplatformsupport_impl.h:43: WebKit::WebView* webView); On 2012/05/15 20:59:17, piman wrote: > NAK, ...
8 years, 7 months ago (2012-05-16 16:39:43 UTC) #3
Fady Samuel
https://chromiumcodereview.appspot.com/10386145/diff/1/ppapi/proxy/ppb_graphics_3d_proxy.cc File ppapi/proxy/ppb_graphics_3d_proxy.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/1/ppapi/proxy/ppb_graphics_3d_proxy.cc#newcode175 ppapi/proxy/ppb_graphics_3d_proxy.cc:175: ppapi::HostResource(), On 2012/05/16 16:39:43, scshunt wrote: > On 2012/05/15 ...
8 years, 7 months ago (2012-05-16 16:43:49 UTC) #4
piman
https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h File content/common/webkitplatformsupport_impl.h (right): https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h#newcode43 content/common/webkitplatformsupport_impl.h:43: WebKit::WebView* webView); On 2012/05/16 16:39:43, scshunt wrote: > On ...
8 years, 7 months ago (2012-05-16 17:12:00 UTC) #5
Fady Samuel
https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h File content/common/webkitplatformsupport_impl.h (right): https://chromiumcodereview.appspot.com/10386145/diff/1/content/common/webkitplatformsupport_impl.h#newcode43 content/common/webkitplatformsupport_impl.h:43: WebKit::WebView* webView); On 2012/05/16 17:12:00, piman wrote: > On ...
8 years, 7 months ago (2012-05-16 17:40:54 UTC) #6
(scshunt)
https://chromiumcodereview.appspot.com/10386145/diff/9002/ppapi/proxy/ppb_graphics_3d_proxy.cc File ppapi/proxy/ppb_graphics_3d_proxy.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/9002/ppapi/proxy/ppb_graphics_3d_proxy.cc#newcode173 ppapi/proxy/ppb_graphics_3d_proxy.cc:173: API_ID_PPB_GRAPHICS_3D, instance, HostResource(), attribs, &result)); I'm going to leave ...
8 years, 7 months ago (2012-05-16 23:10:44 UTC) #7
piman
https://chromiumcodereview.appspot.com/10386145/diff/9002/content/renderer/pepper/pepper_platform_context_3d_impl.cc File content/renderer/pepper/pepper_platform_context_3d_impl.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/9002/content/renderer/pepper/pepper_platform_context_3d_impl.cc#newcode118 content/renderer/pepper/pepper_platform_context_3d_impl.cc:118: CommandBufferProxy* share_buffer = 0; nit: share_buffer = NULL https://chromiumcodereview.appspot.com/10386145/diff/9002/content/renderer/pepper/pepper_platform_context_3d_impl.cc#newcode121 ...
8 years, 7 months ago (2012-05-16 23:38:44 UTC) #8
piman
https://chromiumcodereview.appspot.com/10386145/diff/9002/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc File webkit/plugins/ppapi/ppb_graphics_3d_impl.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/9002/webkit/plugins/ppapi/ppb_graphics_3d_impl.cc#newcode212 webkit/plugins/ppapi/ppb_graphics_3d_impl.cc:212: return CreateGLES2Impl(kCommandBufferSize, kTransferBufferSize); Actually, I'm just realizing, this will ...
8 years, 7 months ago (2012-05-17 00:05:58 UTC) #9
(scshunt)
https://chromiumcodereview.appspot.com/10386145/diff/9002/content/renderer/pepper/pepper_platform_context_3d_impl.cc File content/renderer/pepper/pepper_platform_context_3d_impl.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/9002/content/renderer/pepper/pepper_platform_context_3d_impl.cc#newcode118 content/renderer/pepper/pepper_platform_context_3d_impl.cc:118: CommandBufferProxy* share_buffer = 0; On 2012/05/16 23:38:45, piman wrote: ...
8 years, 7 months ago (2012-05-17 16:55:45 UTC) #10
(scshunt)
I've updated this with mostly everything that I think I can do reasonably right now, ...
8 years, 7 months ago (2012-05-24 18:38:39 UTC) #11
piman
https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc File content/renderer/browser_plugin/guest_to_embedder_channel.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc#newcode168 content/renderer/browser_plugin/guest_to_embedder_channel.cc:168: : ppapi::HostResource(), No, you should pass here the WebGraphicsContext3DCommandBufferImpl ...
8 years, 7 months ago (2012-05-24 23:10:08 UTC) #12
(scshunt)
https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc File content/renderer/browser_plugin/guest_to_embedder_channel.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc#newcode168 content/renderer/browser_plugin/guest_to_embedder_channel.cc:168: : ppapi::HostResource(), On 2012/05/24 23:10:08, piman wrote: > No, ...
8 years, 7 months ago (2012-05-24 23:18:07 UTC) #13
Fady Samuel
https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc File content/renderer/browser_plugin/guest_to_embedder_channel.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/17001/content/renderer/browser_plugin/guest_to_embedder_channel.cc#newcode182 content/renderer/browser_plugin/guest_to_embedder_channel.cc:182: render_view->set_guest_graphics_resource(resource); On 2012/05/24 23:10:08, piman wrote: > err, what ...
8 years, 7 months ago (2012-05-24 23:19:00 UTC) #14
(scshunt)
I've fixed the indicated and brought up to a recent HEAD; it should be ready ...
8 years, 7 months ago (2012-05-25 21:18:36 UTC) #15
piman
On 2012/05/25 21:18:36, scshunt wrote: > I've fixed the indicated and brought up to a ...
8 years, 7 months ago (2012-05-25 21:21:09 UTC) #16
(scshunt)
Sorry about that. I think I got this correct?
8 years, 7 months ago (2012-05-25 22:34:55 UTC) #17
piman
LGTM+nits. Thanks! https://chromiumcodereview.appspot.com/10386145/diff/22002/ppapi/shared_impl/ppb_graphics_3d_shared.cc File ppapi/shared_impl/ppb_graphics_3d_shared.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/22002/ppapi/shared_impl/ppb_graphics_3d_shared.cc#newcode122 ppapi/shared_impl/ppb_graphics_3d_shared.cc:122: share_gles2->share_group() : NULL, nit: looks like this ...
8 years, 7 months ago (2012-05-25 22:41:00 UTC) #18
(scshunt)
Nits picked. Apparently I can commit if you press some magic button on the review ...
8 years, 7 months ago (2012-05-25 22:43:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scshunt@google.com/10386145/26008
8 years, 7 months ago (2012-05-25 22:47:13 UTC) #20
commit-bot: I haz the power
Presubmit check for 10386145-26008 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-25 22:47:30 UTC) #21
(scshunt)
Hey Brett, Just need your look over the ppapi/ changes. Thanks, Sean
8 years, 7 months ago (2012-05-25 22:48:39 UTC) #22
brettw
https://chromiumcodereview.appspot.com/10386145/diff/26008/ppapi/proxy/ppb_graphics_3d_proxy.cc File ppapi/proxy/ppb_graphics_3d_proxy.cc (right): https://chromiumcodereview.appspot.com/10386145/diff/26008/ppapi/proxy/ppb_graphics_3d_proxy.cc#newcode72 ppapi/proxy/ppb_graphics_3d_proxy.cc:72: bool Graphics3D::Init(gpu::gles2::GLES2Implementation *share_gles2) { Nit: * next to type ...
8 years, 7 months ago (2012-05-25 23:19:40 UTC) #23
(scshunt)
Ok, should be good to go now?
8 years, 7 months ago (2012-05-26 00:14:20 UTC) #24
Fady Samuel
A few pre-review nits. Please keep changes as compact as possible to avoid unnecessary code ...
8 years, 6 months ago (2012-05-28 14:11:45 UTC) #25
brettw
lgtm
8 years, 6 months ago (2012-05-29 18:20:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scshunt@google.com/10386145/34001
8 years, 6 months ago (2012-05-29 18:22:32 UTC) #27
commit-bot: I haz the power
Try job failure for 10386145-34001 (retry) on linux_rel for step "check_deps". It's a second try, ...
8 years, 6 months ago (2012-05-29 19:06:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scshunt@google.com/10386145/19018
8 years, 6 months ago (2012-05-29 19:28:10 UTC) #29
commit-bot: I haz the power
8 years, 6 months ago (2012-05-29 21:54:58 UTC) #30
Change committed as 139385

Powered by Google App Engine
This is Rietveld 408576698