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

Issue 558035: [GPU] Get GPU process running on the mac... (Closed)

Created:
10 years, 11 months ago by Ken Russell (switch to Gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw+cc_chromium.org, dpranke+watch_chromium.org, ben+cc_chromium.org, John Grabowski, jam, apatrick_chromium, pam+watch_chromium.org, darin (slow to review), David Springer, nfullagar, Vangelis Kokkevis
Visibility:
Public.

Description

[GPU] Get GPU process running on the mac Initial port of GPU process / plugin to Mac OS X. Uses new IOSurface APIs and therefore currently runs only on 10.6. Alternate strategy will need to be devised for 10.5. Slight UI issues remain such as GPU plugins initially showing up in the wrong place on the page. These will be fixed in follow-on bugs. Minimal changes made to command buffer code to get it to compile on Mac OS X. Commented out use of nested anonymous namespaces in gles2_cmd_decoder.cc which were causing the linker to crash with a seg fault. Refactored gyp files so the OS test enabling the GPU plugin is in one place, common.gypi, and other files test only the variable enable_gpu. Slight change to gles2_demo_cc.cc to add some simple animation to verify that updates from the GPU plugin are reaching the screen. Changed Pepper test plugin to use 3D view by default and commented out use of audio context because of recent issues. TEST=none (ran Pepper Test Plugin with 3D view enabled) BUG=http://crbug.com/25988 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37934

Patch Set 1 #

Total comments: 100

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 15

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 3

Patch Set 10 : '' #

Total comments: 2

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1638 lines, -46 lines) Patch
M app/gfx/native_widget_types.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -2 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +44 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 10 6 chunks +123 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/command_buffer_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/common/gpu_plugin.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
A chrome/common/io_surface_support_mac.h View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/common/io_surface_support_mac.cc View 1 2 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/common/plugin_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +35 lines, -0 lines 0 comments Download
M chrome/plugin/command_buffer_stub.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M chrome/plugin/command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +29 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -1 line 0 comments Download
M chrome/renderer/command_buffer_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/command_buffer_proxy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_pepper.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/webplugin_delegate_proxy.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +46 lines, -0 lines 0 comments Download
M gpu/DEPS View 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_demo_cc.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +39 lines, -1 line 0 comments Download
M gpu/command_buffer/common/cmd_buffer_common.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/common/cmd_buffer_common.cc View 1 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +247 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_processor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gpu_processor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
A gpu/command_buffer/service/gpu_processor_mac.cc View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
M gpu/gpu.gyp View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -3 lines 0 comments Download
M gpu/gpu_plugin/gpu_plugin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M gpu/gpu_plugin/gpu_plugin.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
A webkit/glue/plugins/mac_gpu_plugin_container.h View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
A webkit/glue/plugins/mac_gpu_plugin_container.cc View 1 2 1 chunk +104 lines, -0 lines 0 comments Download
A webkit/glue/plugins/mac_gpu_plugin_container_manager.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A webkit/glue/plugins/mac_gpu_plugin_container_manager.cc View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webplugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -3 lines 0 comments Download
M webkit/glue/webplugin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
M webkit/glue/webplugin_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +18 lines, -0 lines 0 comments Download
M webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -9 lines 0 comments Download
M webkit/tools/pepper_test_plugin/plugin_object.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +11 lines, -1 line 0 comments Download
M webkit/tools/pepper_test_plugin/test_page.html View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/tools/test_shell/mac/test_webview_delegate.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Ken Russell (switch to Gerrit)
Please review. Thanks.
10 years, 11 months ago (2010-01-29 02:45:06 UTC) #1
greggman
I'm not sure if I'm the guy that should be reviewing this as I know ...
10 years, 11 months ago (2010-01-29 04:06:45 UTC) #2
apatrick
Awesome! There might be some duplicates with gman's comments. I haven't reviewed the mac specific ...
10 years, 10 months ago (2010-01-29 18:59:09 UTC) #3
stuartmorgan
Mostly just looked at the Mac plugin stuff; I'm not familiar with all the GL ...
10 years, 10 months ago (2010-01-29 21:02:18 UTC) #4
Ken Russell (switch to Gerrit)
Addressed all review feedback. Fixed all lint errors. Fixed build failures (waiting for try bots ...
10 years, 10 months ago (2010-01-29 23:34:11 UTC) #5
apatrick_chromium
http://codereview.chromium.org/558035/diff/1/23 File gpu/command_buffer/client/esTransform.h (right): http://codereview.chromium.org/558035/diff/1/23#newcode2 gpu/command_buffer/client/esTransform.h:2: // Book: OpenGL(R) ES 2.0 Programming Guide Well so ...
10 years, 10 months ago (2010-01-30 00:21:58 UTC) #6
greggman
http://codereview.chromium.org/558035/diff/1/21 File gpu/command_buffer/common/cmd_buffer_common.h (right): http://codereview.chromium.org/558035/diff/1/21#newcode41 gpu/command_buffer/common/cmd_buffer_common.h:41: static const int32 kMaxSize; On 2010/01/29 23:34:12, kbr wrote: ...
10 years, 10 months ago (2010-01-30 06:50:43 UTC) #7
Ken Russell (switch to Gerrit)
Addressed remaining review feedback. Fixed build errors on Windows and Linux. Required refactoring of pepper_test_plugin.gyp ...
10 years, 10 months ago (2010-02-02 02:13:17 UTC) #8
apatrick
lgtm
10 years, 10 months ago (2010-02-02 02:37:46 UTC) #9
greggman
LGTM
10 years, 10 months ago (2010-02-02 02:50:53 UTC) #10
piman
http://codereview.chromium.org/558035/diff/1/12 File webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp (right): http://codereview.chromium.org/558035/diff/1/12#newcode13 webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp:13: '../../../gpu/gpu.gyp:pgl', That will break linux x64 I think. http://codereview.chromium.org/558035/diff/1/12#newcode68 ...
10 years, 10 months ago (2010-02-02 03:29:30 UTC) #11
alokp
http://codereview.chromium.org/558035/diff/13022/12051 File gpu/command_buffer/common/cmd_buffer_common.h (right): http://codereview.chromium.org/558035/diff/13022/12051#newcode38 gpu/command_buffer/common/cmd_buffer_common.h:38: const int32 kCommandHeaderMaxSize = (1 << 21) - 1; ...
10 years, 10 months ago (2010-02-02 03:42:19 UTC) #12
piman
http://codereview.chromium.org/558035/diff/1/21 File gpu/command_buffer/common/cmd_buffer_common.h (right): http://codereview.chromium.org/558035/diff/1/21#newcode41 gpu/command_buffer/common/cmd_buffer_common.h:41: static const int32 kMaxSize; On 2010/02/02 02:13:18, kbr wrote: ...
10 years, 10 months ago (2010-02-02 03:59:33 UTC) #13
alokp
http://codereview.chromium.org/558035/diff/13022/12053 File gpu/command_buffer/client/esTransform.c (right): http://codereview.chromium.org/558035/diff/13022/12053#newcode19 gpu/command_buffer/client/esTransform.c:19: #include <math.h> ditto http://codereview.chromium.org/558035/diff/13022/12054 File gpu/command_buffer/client/esTransform.h (right): http://codereview.chromium.org/558035/diff/13022/12054#newcode1 gpu/command_buffer/client/esTransform.h:1: ...
10 years, 10 months ago (2010-02-02 04:00:08 UTC) #14
alokp
http://codereview.chromium.org/558035/diff/1/21 File gpu/command_buffer/common/cmd_buffer_common.h (right): http://codereview.chromium.org/558035/diff/1/21#newcode41 gpu/command_buffer/common/cmd_buffer_common.h:41: static const int32 kMaxSize; piman: Actually I tried what ...
10 years, 10 months ago (2010-02-02 04:06:27 UTC) #15
piman
On Mon, Feb 1, 2010 at 8:06 PM, <alokp@chromium.org> wrote: > > http://codereview.chromium.org/558035/diff/1/21 > File ...
10 years, 10 months ago (2010-02-02 04:12:36 UTC) #16
alokp
I was going crazy today about why gcc was complaining about only a few static ...
10 years, 10 months ago (2010-02-02 04:23:58 UTC) #17
stuartmorgan
http://codereview.chromium.org/558035/diff/13022/12063 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/558035/diff/13022/12063#newcode65 chrome/browser/renderer_host/render_widget_host_view_mac.mm:65: scoped_ptr<RenderWidgetHostViewMac> renderWidgetHostView_; Why scoped_ptr? Having deallocation of this object ...
10 years, 10 months ago (2010-02-02 15:45:13 UTC) #18
Ken Russell (switch to Gerrit)
Addressed Mac-specific and Pepper test plugin-related review feedback. Undid most of the changes to the ...
10 years, 10 months ago (2010-02-02 23:06:36 UTC) #19
piman
I looked at the gyp changes and LGTM for that. Just one thing if you ...
10 years, 10 months ago (2010-02-02 23:16:04 UTC) #20
stuartmorgan
http://codereview.chromium.org/558035/diff/13022/12063 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/558035/diff/13022/12063#newcode524 chrome/browser/renderer_host/render_widget_host_view_mac.mm:524: gpu_plugin_layer_ = gpu_layer; On 2010/02/02 23:06:36, kbr wrote: > ...
10 years, 10 months ago (2010-02-02 23:24:56 UTC) #21
alokp
http://codereview.chromium.org/558035/diff/12092/13044 File gpu/command_buffer/common/cmd_buffer_common.cc (right): http://codereview.chromium.org/558035/diff/12092/13044#newcode11 gpu/command_buffer/common/cmd_buffer_common.cc:11: #if !defined(OS_WIN) This is weird. I submitted two CLs ...
10 years, 10 months ago (2010-02-02 23:26:52 UTC) #22
Ken Russell (switch to Gerrit)
Addressed review feedback on CALayer leak and pepper_test_plugin.gyp changes. http://codereview.chromium.org/558035/diff/13022/12063 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/558035/diff/13022/12063#newcode524 chrome/browser/renderer_host/render_widget_host_view_mac.mm:524: ...
10 years, 10 months ago (2010-02-03 00:39:33 UTC) #23
stuartmorgan
LGTM; just a tiny comment fix. http://codereview.chromium.org/558035/diff/18032/15106 File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/558035/diff/18032/15106#newcode65 chrome/browser/renderer_host/render_widget_host_view_mac.mm:65: RenderWidgetHostViewMac* renderWidgetHostView_; I ...
10 years, 10 months ago (2010-02-03 01:01:24 UTC) #24
piman
LGTM
10 years, 10 months ago (2010-02-03 01:07:30 UTC) #25
Ken Russell (switch to Gerrit)
10 years, 10 months ago (2010-02-03 01:27:42 UTC) #26
http://codereview.chromium.org/558035/diff/18032/15106
File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right):

http://codereview.chromium.org/558035/diff/18032/15106#newcode65
chrome/browser/renderer_host/render_widget_host_view_mac.mm:65:
RenderWidgetHostViewMac* renderWidgetHostView_;
On 2010/02/03 01:01:25, stuartmorgan wrote:
> I believe the style is to mark this with a "  // weak" at the end of the line.

Thanks for review. Fixed. Submitting.

Powered by Google App Engine
This is Rietveld 408576698