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

Issue 1338433002: Mandoline: Add WebGL support (Closed)

Created:
5 years, 3 months ago by Peng
Modified:
5 years, 3 months ago
Reviewers:
Fady Samuel, sky, piman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This change adds WebGL support in mandoline. It also adds GL chromium_framebuffer_multisample extension which is need by WebGL. TODO: * Pass attributes to GPU when create WebGL context. * Get GPU info and fill it into glinfo. TEST= mandoline --enable-webgl http://learningwebgl.com/lessons/lesson03/index.html BUG=525159 NOPRESUBMIT=true Committed: https://crrev.com/ab7a90daddbe7d44558d8703b12204570ae98431 Cr-Commit-Position: refs/heads/master@{#349206}

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : Workable WIP #

Patch Set 4 : Update #

Patch Set 5 : Update #

Patch Set 6 : Add --enable-webgl switch #

Total comments: 2

Patch Set 7 : change --enable-webgl to --disable-webgl #

Total comments: 4

Patch Set 8 : Rebase and address review issues #

Total comments: 12

Patch Set 9 : Address review issues #

Patch Set 10 : Fix gn check issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -11 lines) Patch
M components/html_viewer/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -0 lines 0 comments Download
M components/html_viewer/DEPS View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M components/html_viewer/blink_platform_impl.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M components/html_viewer/blink_platform_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +32 lines, -1 line 0 comments Download
M components/html_viewer/html_widget.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download
A components/html_viewer/web_graphics_context_3d_command_buffer_impl.h View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +63 lines, -0 lines 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -1 line 0 comments Download
M mojo/gles2/gles2_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/gpu/mojo_gles2_impl_autogen.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -2 lines 0 comments Download
M mojo/runner/native_application_support.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/public/c/gles2/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A + third_party/mojo/src/mojo/public/c/gles2/chromium_framebuffer_multisample.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A third_party/mojo/src/mojo/public/c/gles2/gles2_call_visitor_chromium_framebuffer_multisample_autogen.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/mojo/src/mojo/public/platform/native/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_framebuffer_multisample_thunks.h View 1 2 3 4 1 chunk +47 lines, -0 lines 0 comments Download
A third_party/mojo/src/mojo/public/platform/native/gles2_impl_chromium_framebuffer_multisample_thunks.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
Peng
Hi Scott & Antoine, PTAL. Thanks.
5 years, 3 months ago (2015-09-14 19:20:00 UTC) #2
Fady Samuel
Why is this a switch? Is there any reason not to always keep WebGL on? ...
5 years, 3 months ago (2015-09-14 19:21:43 UTC) #4
Peng
https://codereview.chromium.org/1338433002/diff/100001/components/html_viewer/blink_platform_impl.cc File components/html_viewer/blink_platform_impl.cc (right): https://codereview.chromium.org/1338433002/diff/100001/components/html_viewer/blink_platform_impl.cc#newcode182 components/html_viewer/blink_platform_impl.cc:182: if (command_line->HasSwitch(kEnableWebGLSwitch)) { On 2015/09/14 19:21:43, Fady Samuel wrote: ...
5 years, 3 months ago (2015-09-14 19:28:46 UTC) #5
Fady Samuel
On 2015/09/14 19:28:46, Peng wrote: > https://codereview.chromium.org/1338433002/diff/100001/components/html_viewer/blink_platform_impl.cc > File components/html_viewer/blink_platform_impl.cc (right): > > https://codereview.chromium.org/1338433002/diff/100001/components/html_viewer/blink_platform_impl.cc#newcode182 > ...
5 years, 3 months ago (2015-09-14 19:30:27 UTC) #6
Peng
On 2015/09/14 19:30:27, Fady Samuel wrote: > On 2015/09/14 19:28:46, Peng wrote: > > > ...
5 years, 3 months ago (2015-09-14 20:06:07 UTC) #7
piman
https://codereview.chromium.org/1338433002/diff/120001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc File components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc (right): https://codereview.chromium.org/1338433002/diff/120001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc#newcode62 components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc:62: void WebGraphicsContext3DCommandBufferImpl::ContextLost() { You'll need to wire that to ...
5 years, 3 months ago (2015-09-14 21:17:12 UTC) #8
Peng
https://codereview.chromium.org/1338433002/diff/120001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc File components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc (right): https://codereview.chromium.org/1338433002/diff/120001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc#newcode62 components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc:62: void WebGraphicsContext3DCommandBufferImpl::ContextLost() { On 2015/09/14 21:17:12, piman (slow to ...
5 years, 3 months ago (2015-09-15 15:07:30 UTC) #10
piman
lgtm
5 years, 3 months ago (2015-09-15 20:00:39 UTC) #11
sky
https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/blink_platform_impl.h File components/html_viewer/blink_platform_impl.h (right): https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/blink_platform_impl.h#newcode80 components/html_viewer/blink_platform_impl.h:80: blink::WebGraphicsContext3D* shareContext); share_context (make sure all your names match ...
5 years, 3 months ago (2015-09-15 22:10:59 UTC) #12
Fady Samuel
https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc File components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc (right): https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc#newcode25 components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc:25: request->url = mojo::String::From("mojo:view_manager"); mojo:mus now.
5 years, 3 months ago (2015-09-16 00:15:39 UTC) #13
Peng
https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/blink_platform_impl.h File components/html_viewer/blink_platform_impl.h (right): https://codereview.chromium.org/1338433002/diff/160001/components/html_viewer/blink_platform_impl.h#newcode80 components/html_viewer/blink_platform_impl.h:80: blink::WebGraphicsContext3D* shareContext); On 2015/09/15 22:10:58, sky wrote: > share_context ...
5 years, 3 months ago (2015-09-16 13:54:59 UTC) #14
sky
LGTM
5 years, 3 months ago (2015-09-16 19:55:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338433002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338433002/180001
5 years, 3 months ago (2015-09-16 19:56:50 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/100555)
5 years, 3 months ago (2015-09-16 20:08:43 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338433002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338433002/180001
5 years, 3 months ago (2015-09-16 20:10:01 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 3 months ago (2015-09-16 20:11:41 UTC) #27
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/ab7a90daddbe7d44558d8703b12204570ae98431 Cr-Commit-Position: refs/heads/master@{#349206}
5 years, 3 months ago (2015-09-16 20:12:13 UTC) #28
Dirk Pranke
A revert of this CL (patchset #9 id:180001) has been created in https://codereview.chromium.org/1343303003/ by dpranke@chromium.org. ...
5 years, 3 months ago (2015-09-16 20:54:04 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1338433002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1338433002/200001
5 years, 3 months ago (2015-09-16 21:11:33 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:200001)
5 years, 3 months ago (2015-09-16 21:51:37 UTC) #33
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/6bd2a1feef1e8dba69070989a553ca022540384f Cr-Commit-Position: refs/heads/master@{#349242}
5 years, 3 months ago (2015-09-16 21:52:12 UTC) #34
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:59:58 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/ab7a90daddbe7d44558d8703b12204570ae98431
Cr-Commit-Position: refs/heads/master@{#349206}

Powered by Google App Engine
This is Rietveld 408576698