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

Issue 1251783002: Mac Overlays: Wire up overlays on Mac (Closed)

Created:
5 years, 5 months ago by ccameron
Modified:
5 years, 5 months ago
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@part22
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac Overlays: Wire up overlays on Mac Add support for scanning out of BGRA memory buffers on Mac. Add a very small image transport surface that uses the remote CALayer API to set a CALayer's content to be the IOSurface that was rendered to. Support is currently limited to one overlay surface. BUG=510252 Committed: https://crrev.com/431311669957bc4d4674796bf80a9fed8ba2764a Cr-Commit-Position: refs/heads/master@{#340223}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Add more dchecks #

Total comments: 15

Patch Set 3 : Incorporate review feedback #

Patch Set 4 : Incorporate review feedback #

Total comments: 4

Patch Set 5 : Change AcceleratedWidget type #

Patch Set 6 : Leave disabled for now #

Total comments: 8

Patch Set 7 : Incorporate review feedback #

Patch Set 8 : Leave widget type unchanged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -209 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -5 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 1 chunk +1 line, -0 lines 0 comments Download
A content/common/gpu/image_transport_surface_overlay_mac.h View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A content/common/gpu/image_transport_surface_overlay_mac.mm View 1 2 3 4 5 6 7 1 chunk +148 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/BUILD.gn View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ui/gl/gl.gyp View 2 chunks +2 lines, -1 line 0 comments Download
M ui/gl/gl_image_io_surface.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
D ui/gl/gl_image_io_surface.cc View 1 chunk +0 lines, -198 lines 0 comments Download
A + ui/gl/gl_image_io_surface.mm View 1 2 3 4 5 6 2 chunks +33 lines, -1 line 0 comments Download

Messages

Total messages: 30 (10 generated)
ccameron
This still keeps the overlay validator as NULL, so I assume that exactly one overlay ...
5 years, 5 months ago (2015-07-22 05:26:22 UTC) #2
alexst (slow to review)
Just some notes, otherwise this all looks good! https://codereview.chromium.org/1251783002/diff/20001/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1251783002/diff/20001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode89 content/common/gpu/image_transport_surface_overlay_mac.mm:89: return ...
5 years, 5 months ago (2015-07-22 14:38:02 UTC) #3
alexst (slow to review)
https://codereview.chromium.org/1251783002/diff/20001/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1251783002/diff/20001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode89 content/common/gpu/image_transport_surface_overlay_mac.mm:89: return true; On 2015/07/22 14:38:02, alexst wrote: > I ...
5 years, 5 months ago (2015-07-22 14:43:53 UTC) #4
Andre
https://codereview.chromium.org/1251783002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.h File content/common/gpu/image_transport_surface_overlay_mac.h (right): https://codereview.chromium.org/1251783002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.h#newcode8 content/common/gpu/image_transport_surface_overlay_mac.h:8: #include "base/mac/scoped_nsobject.h" Use #import for an Obj-C header. https://codereview.chromium.org/1251783002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.h#newcode11 ...
5 years, 5 months ago (2015-07-22 21:34:36 UTC) #6
ccameron
Thanks!! Updated. https://codereview.chromium.org/1251783002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.h File content/common/gpu/image_transport_surface_overlay_mac.h (right): https://codereview.chromium.org/1251783002/diff/1/content/common/gpu/image_transport_surface_overlay_mac.h#newcode8 content/common/gpu/image_transport_surface_overlay_mac.h:8: #include "base/mac/scoped_nsobject.h" On 2015/07/22 21:34:36, Andre wrote: ...
5 years, 5 months ago (2015-07-23 05:33:02 UTC) #7
alexst (slow to review)
lgtm
5 years, 5 months ago (2015-07-23 12:54:13 UTC) #8
Andre
LGTM https://codereview.chromium.org/1251783002/diff/60001/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1251783002/diff/60001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode7 content/common/gpu/image_transport_surface_overlay_mac.mm:7: #include <OpenGL/GL.h> I think it's lowercase gl.h https://codereview.chromium.org/1251783002/diff/60001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode45 ...
5 years, 5 months ago (2015-07-23 18:14:02 UTC) #9
alexst (slow to review)
> https://codereview.chromium.org/1251783002/diff/60001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode45 > content/common/gpu/image_transport_surface_overlay_mac.mm:45: widget_ = > reinterpret_cast<gfx::AcceleratedWidget>(previous_widget); > I'm not sure this is better ...
5 years, 5 months ago (2015-07-23 18:54:33 UTC) #10
ccameron
On 2015/07/23 18:54:33, alexst wrote: > > > https://codereview.chromium.org/1251783002/diff/60001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode45 > > content/common/gpu/image_transport_surface_overlay_mac.mm:45: widget_ = > ...
5 years, 5 months ago (2015-07-23 19:15:24 UTC) #11
ccameron
Thanks! Adding avi@ for ui/ OWNER Also, leaving the feature disabled in this patch (I'll ...
5 years, 5 months ago (2015-07-23 19:44:49 UTC) #13
Avi (use Gerrit)
lgtm stamp with nits. https://codereview.chromium.org/1251783002/diff/100001/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1251783002/diff/100001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode38 content/common/gpu/image_transport_surface_overlay_mac.mm:38: [[CAContext contextWithCGSConnection:connection_id options:@{}] retain]); I ...
5 years, 5 months ago (2015-07-23 20:13:58 UTC) #14
ccameron
Thanks! Updated. https://codereview.chromium.org/1251783002/diff/100001/content/common/gpu/image_transport_surface_overlay_mac.mm File content/common/gpu/image_transport_surface_overlay_mac.mm (right): https://codereview.chromium.org/1251783002/diff/100001/content/common/gpu/image_transport_surface_overlay_mac.mm#newcode38 content/common/gpu/image_transport_surface_overlay_mac.mm:38: [[CAContext contextWithCGSConnection:connection_id options:@{}] retain]); On 2015/07/23 20:13:57, ...
5 years, 5 months ago (2015-07-23 22:16:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251783002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251783002/120001
5 years, 5 months ago (2015-07-23 22:28:40 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/90823)
5 years, 5 months ago (2015-07-23 22:48:21 UTC) #20
ccameron
On 2015/07/23 22:48:21, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 5 months ago (2015-07-23 23:00:25 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251783002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251783002/140001
5 years, 5 months ago (2015-07-23 23:37:19 UTC) #24
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/81628)
5 years, 5 months ago (2015-07-24 00:05:59 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251783002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251783002/140001
5 years, 5 months ago (2015-07-24 03:55:41 UTC) #28
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 5 months ago (2015-07-24 05:10:12 UTC) #29
commit-bot: I haz the power
5 years, 5 months ago (2015-07-24 05:10:48 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/431311669957bc4d4674796bf80a9fed8ba2764a
Cr-Commit-Position: refs/heads/master@{#340223}

Powered by Google App Engine
This is Rietveld 408576698