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

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed)

Created:
6 years ago by tapted
Modified:
6 years ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, Ian Vollick, 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, danakj+watch_chromium.org, James Su, cc-bugs_chromium.org, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org, danakj
Base URL:
https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Project:
chromium
Visibility:
Public.

Description

MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac This permits ContextFactory on Mac to create composited surfaces for ui/views. Moves files: surface_handle_types_mac, accelerated_widget_mac, software_layer_mac, and io_surface_{context,layer,texture}_mac to ui/accelerated_widget_mac. accelerated_widget_mac.gyp and other component friends are also added there. content dependencies from these files are removed. Only one real dependency was left: a call to GpuDataManager:: IsDriverBugWorkaroundActive(gpu::FORCE_GL_FINISH_AFTER_COMPOSITING), which is now plumbed through when constructing an AcceleratedWidgetMac. TBR=bsalomon@google.com BUG=424058 Committed: https://crrev.com/736e14479ad04dbd4d9df9d277db2bde0a5f28c4 Cr-Commit-Position: refs/heads/master@{#306272}

Patch Set 1 #

Patch Set 2 : nit DEPS, deps and gn #

Total comments: 8

Patch Set 3 : Respond to comments, need to fetch a new master #

Patch Set 4 : rebase to master #

Total comments: 9

Patch Set 5 : Now in ui/accelerated_widget_mac. Respond to comments. #

Patch Set 6 : Add README #

Total comments: 2

Patch Set 7 : gn check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -1951 lines) Patch
M content/DEPS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
D content/browser/compositor/browser_compositor_ca_layer_tree_mac.h View 1 2 1 chunk +0 lines, -159 lines 0 comments Download
D content/browser/compositor/browser_compositor_ca_layer_tree_mac.mm View 1 2 3 1 chunk +0 lines, -390 lines 0 comments Download
M content/browser/compositor/browser_compositor_view_mac.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/compositor/browser_compositor_view_mac.mm View 1 2 3 4 2 chunks +10 lines, -2 lines 0 comments Download
D content/browser/compositor/io_surface_context_mac.h View 1 chunk +0 lines, -72 lines 0 comments Download
D content/browser/compositor/io_surface_context_mac.mm View 1 chunk +0 lines, -121 lines 0 comments Download
D content/browser/compositor/io_surface_layer_mac.h View 1 chunk +0 lines, -161 lines 0 comments Download
D content/browser/compositor/io_surface_layer_mac.mm View 1 chunk +0 lines, -301 lines 0 comments Download
D content/browser/compositor/io_surface_texture_mac.h View 1 chunk +0 lines, -121 lines 0 comments Download
D content/browser/compositor/io_surface_texture_mac.mm View 1 chunk +0 lines, -297 lines 0 comments Download
D content/browser/compositor/software_layer_mac.h View 1 2 1 chunk +0 lines, -22 lines 0 comments Download
D content/browser/compositor/software_layer_mac.mm View 1 2 1 chunk +0 lines, -68 lines 0 comments Download
M content/browser/compositor/software_output_device_mac.mm View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_calayer_mac.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/image_transport_surface_iosurface_mac.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
D content/common/gpu/surface_handle_types_mac.h View 1 chunk +0 lines, -35 lines 0 comments Download
D content/common/gpu/surface_handle_types_mac.cc View 1 chunk +0 lines, -53 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 4 chunks +1 line, -10 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
A ui/accelerated_widget_mac/BUILD.gn View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A ui/accelerated_widget_mac/DEPS View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A ui/accelerated_widget_mac/OWNERS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A ui/accelerated_widget_mac/README View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
A + ui/accelerated_widget_mac/accelerated_widget_mac.h View 1 2 3 4 5 chunks +24 lines, -17 lines 0 comments Download
A ui/accelerated_widget_mac/accelerated_widget_mac.gyp View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A + ui/accelerated_widget_mac/accelerated_widget_mac.mm View 1 2 3 4 5 chunks +17 lines, -20 lines 0 comments Download
A ui/accelerated_widget_mac/accelerated_widget_mac_export.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_context.h View 1 2 3 4 4 chunks +6 lines, -6 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_context.mm View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_layer.h View 1 2 3 4 5 chunks +15 lines, -13 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_layer.mm View 1 2 3 4 3 chunks +13 lines, -12 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_texture.h View 1 2 3 4 7 chunks +11 lines, -11 lines 0 comments Download
A + ui/accelerated_widget_mac/io_surface_texture.mm View 1 2 3 4 5 chunks +15 lines, -22 lines 0 comments Download
A + ui/accelerated_widget_mac/software_layer.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A + ui/accelerated_widget_mac/software_layer.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + ui/accelerated_widget_mac/surface_handle_types.h View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
A + ui/accelerated_widget_mac/surface_handle_types.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
ccameron
Looks good in general, couple of suggestions. https://codereview.chromium.org/753933002/diff/20001/ui/compositor/mac/accelerated_widget_mac.h File ui/compositor/mac/accelerated_widget_mac.h (right): https://codereview.chromium.org/753933002/diff/20001/ui/compositor/mac/accelerated_widget_mac.h#newcode19 ui/compositor/mac/accelerated_widget_mac.h:19: #include "ui/base/cocoa/remote_layer_api.h" ...
6 years ago (2014-11-25 17:54:25 UTC) #2
tapted
thanks Chris! PTAL. piman, PTAL for OWNERS. I delayed this a bit - out-of-process was ...
6 years ago (2014-11-25 23:53:55 UTC) #4
ccameron
Awesome -- lgtm mod the couple of questions below https://codereview.chromium.org/753933002/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): https://codereview.chromium.org/753933002/diff/60001/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode281 content/browser/gpu/gpu_process_host_ui_shim.cc:281: ...
6 years ago (2014-11-26 18:36:52 UTC) #5
piman
Unless I'm mistaken, except for one thing (that can be fixed, see below), the parts ...
6 years ago (2014-11-26 20:58:08 UTC) #6
ccameron
On 2014/11/26 20:58:08, piman (Very slow to review) wrote: > Unless I'm mistaken, except for ...
6 years ago (2014-11-26 21:16:18 UTC) #7
piman
On Wed, Nov 26, 2014 at 1:16 PM, <ccameron@chromium.org> wrote: > On 2014/11/26 20:58:08, piman ...
6 years ago (2014-11-26 21:30:47 UTC) #8
tapted
On 2014/11/26 21:30:47, piman (Very slow to review) wrote: > On Wed, Nov 26, 2014 ...
6 years ago (2014-11-26 22:04:52 UTC) #9
ccameron
On 2014/11/26 22:04:52, tapted wrote: > WDYT about a new folder like src/ui/accelerated_widget_mac/ ? (or ...
6 years ago (2014-11-26 22:11:42 UTC) #10
piman
On Wed, Nov 26, 2014 at 2:04 PM, <tapted@chromium.org> wrote: > On 2014/11/26 21:30:47, piman ...
6 years ago (2014-11-26 22:11:49 UTC) #11
tapted
As discussed - now a standalone component in ui/accelerated_widget_mac - PTAL +avi for ui OWNERS ...
6 years ago (2014-11-27 02:50:34 UTC) #14
Avi (use Gerrit)
I'm no expert in graphics, but it's mostly a move. ui/ LGTM https://codereview.chromium.org/753933002/diff/120001/ui/accelerated_widget_mac/BUILD.gn File ui/accelerated_widget_mac/BUILD.gn ...
6 years ago (2014-11-27 03:16:02 UTC) #15
tapted
https://codereview.chromium.org/753933002/diff/60001/ui/compositor/BUILD.gn File ui/compositor/BUILD.gn (right): https://codereview.chromium.org/753933002/diff/60001/ui/compositor/BUILD.gn#newcode91 ui/compositor/BUILD.gn:91: if (is_mac) { On 2014/11/27 02:50:33, tapted wrote: > ...
6 years ago (2014-11-27 05:58:41 UTC) #16
piman
lgtm
6 years ago (2014-12-01 19:32:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/753933002/140001
6 years ago (2014-12-01 21:57:13 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/27467)
6 years ago (2014-12-01 22:02:41 UTC) #21
tapted
+bsalomon@goog TBR for the refactoring change, moving the skia dep. i.e. ** Presubmit ERRORS ** ...
6 years ago (2014-12-01 22:20:06 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/753933002/140001
6 years ago (2014-12-01 22:21:14 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:140001)
6 years ago (2014-12-01 22:26:00 UTC) #26
commit-bot: I haz the power
6 years ago (2014-12-01 22:26:58 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/736e14479ad04dbd4d9df9d277db2bde0a5f28c4
Cr-Commit-Position: refs/heads/master@{#306272}

Powered by Google App Engine
This is Rietveld 408576698