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

Issue 267073003: Make --enable-delegated-renderer show stuff on Mac (Closed)

Created:
6 years, 7 months ago by ccameron
Modified:
6 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, danakj+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make --enable-delegated-renderer show stuff on Mac With this patch, pixels appear on screen and tab capture works. Add a OnNativeSurfaceBuffersSwapped mechanism to display an IOSurface to an NSView. This is wired up to the existing CompositingIOSurfaceMac. In a future refactoring, something much more light-weight than CompositingIOSurfaceMac will be used (CompositingIOSurfaceMac has capture code, etc, in it). Add a DelegatedFrameHost to RenderWidgetHostViewMac, and hookup the DelegatedFrameHostClient implementation. Create the DelegatedFrameHost when a delegated frame is received, and use its existence to determine which mode is active. BUG=314190 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269946

Patch Set 1 #

Patch Set 2 : Fix null checks" #

Total comments: 22

Patch Set 3 : Incorporate review feedback #

Total comments: 2

Patch Set 4 : Incorporate review feedback #

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : Fix resize issues #

Total comments: 6

Patch Set 7 : Add missed files #

Patch Set 8 : Rebase #

Patch Set 9 : Move #include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -44 lines) Patch
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.h View 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/delegated_frame_host.cc View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -6 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_helper.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
A content/browser/renderer_host/render_widget_helper_mac.mm View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 5 chunks +26 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 14 chunks +160 lines, -32 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
ccameron
ptal https://codereview.chromium.org/267073003/diff/20001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (left): https://codereview.chromium.org/267073003/diff/20001/cc/resources/resource_provider.cc#oldcode1615 cc/resources/resource_provider.cc:1615: DCHECK_EQ(source->wrap_mode, GL_CLAMP_TO_EDGE); I added this check when implementing ...
6 years, 7 months ago (2014-05-06 00:20:32 UTC) #1
piman
A few things. I understand this is work in progress, but I think putting things ...
6 years, 7 months ago (2014-05-06 00:59:00 UTC) #2
ccameron
Did most of the suggestions -- not sure what to do about where to put ...
6 years, 7 months ago (2014-05-06 17:15:55 UTC) #3
piman
https://codereview.chromium.org/267073003/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/267073003/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode427 content/browser/renderer_host/render_widget_host_view_mac.mm:427: void RenderWidgetHelper::OnNativeSurfaceBuffersSwapped( On 2014/05/06 17:15:56, ccameron1 wrote: > On ...
6 years, 7 months ago (2014-05-06 19:58:08 UTC) #4
piman
https://codereview.chromium.org/267073003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/267073003/diff/40001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode440 content/browser/renderer_host/render_widget_host_view_mac.mm:440: base::Bind(&OnNativeSurfaceBuffersSwapped, gpu_process_host, params)); It kinda calls for having a ...
6 years, 7 months ago (2014-05-06 20:02:53 UTC) #5
ccameron
https://codereview.chromium.org/267073003/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/267073003/diff/20001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode427 content/browser/renderer_host/render_widget_host_view_mac.mm:427: void RenderWidgetHelper::OnNativeSurfaceBuffersSwapped( On 2014/05/06 19:58:09, piman wrote: > On ...
6 years, 7 months ago (2014-05-06 20:38:59 UTC) #6
ccameron
I dug a bit deeper into the DPI issues I was having, and we'll probably ...
6 years, 7 months ago (2014-05-06 23:39:09 UTC) #7
Ken Russell (switch to Gerrit)
Looks like great progress. I don't have any substantive comments.
6 years, 7 months ago (2014-05-06 23:48:17 UTC) #8
piman
https://codereview.chromium.org/267073003/diff/100001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/267073003/diff/100001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1882 content/browser/renderer_host/render_widget_host_view_mac.mm:1882: compositor_->SetRootLayer(nil); nit: nil? NULL? https://codereview.chromium.org/267073003/diff/100001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1893 content/browser/renderer_host/render_widget_host_view_mac.mm:1893: // composited frame ...
6 years, 7 months ago (2014-05-07 00:32:54 UTC) #9
ccameron
https://codereview.chromium.org/267073003/diff/100001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/267073003/diff/100001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode1882 content/browser/renderer_host/render_widget_host_view_mac.mm:1882: compositor_->SetRootLayer(nil); On 2014/05/07 00:32:55, piman wrote: > nit: nil? ...
6 years, 7 months ago (2014-05-07 00:37:47 UTC) #10
ccameron
ping
6 years, 7 months ago (2014-05-08 16:55:01 UTC) #11
piman
lgtm
6 years, 7 months ago (2014-05-08 18:16:53 UTC) #12
ccameron
Thanks!
6 years, 7 months ago (2014-05-08 18:52:02 UTC) #13
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 7 months ago (2014-05-08 18:52:07 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/267073003/120001
6 years, 7 months ago (2014-05-08 18:54:26 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-08 21:59:01 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-08 22:07:02 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/2641) ios_dbg_simulator on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_dbg_simulator/builds/150161) ios_rel_device ...
6 years, 7 months ago (2014-05-08 22:07:03 UTC) #18
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 7 months ago (2014-05-12 20:11:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/267073003/140001
6 years, 7 months ago (2014-05-12 20:12:58 UTC) #20
ccameron
The CQ bit was unchecked by ccameron@chromium.org
6 years, 7 months ago (2014-05-12 21:07:03 UTC) #21
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 7 months ago (2014-05-12 22:11:58 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/267073003/150001
6 years, 7 months ago (2014-05-12 22:13:02 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 01:00:38 UTC) #24
Message was sent while issue was closed.
Change committed as 269946

Powered by Google App Engine
This is Rietveld 408576698