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

Issue 2586323002: mus: Use ui::ContextProviderCommandBuffer. (Closed)

Created:
4 years ago by sadrul
Modified:
3 years, 11 months ago
Reviewers:
msw, jam, jbauman
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, sadrul, tfarina, jam, darin-cc_chromium.org, piman+watch_chromium.org, kalyank
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Use ui::ContextProviderCommandBuffer. Remove ui::ContextProvider and ui::GLES2Context, since they are incomplete. Instead use ui::ContextProviderCommandBuffer, which is used by chrome browser and renderers. BUG=643746 TBR=jam@ for content/renderer for code update for API change Committed: https://crrev.com/9f14d907cbfaa28b64223028d0ad27e3447e602d Cr-Commit-Position: refs/heads/master@{#439718}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : async #

Total comments: 14

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -300 lines) Patch
M content/renderer/mus/render_widget_mus_connection.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M services/ui/public/cpp/BUILD.gn View 1 2 3 4 chunks +0 lines, -15 lines 0 comments Download
D services/ui/public/cpp/context_provider.h View 1 chunk +0 lines, -54 lines 0 comments Download
D services/ui/public/cpp/context_provider.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D services/ui/public/cpp/gles2_context.h View 1 chunk +0 lines, -58 lines 0 comments Download
D services/ui/public/cpp/gles2_context.cc View 1 chunk +0 lines, -88 lines 0 comments Download
M services/ui/public/cpp/gpu/command_buffer_metrics.h View 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/gpu/command_buffer_metrics.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M services/ui/public/cpp/gpu/gpu.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M services/ui/public/cpp/gpu/gpu.cc View 1 2 3 2 chunks +22 lines, -0 lines 0 comments Download
M ui/aura/mus/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/mus/mus_context_factory.h View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M ui/aura/mus/mus_context_factory.cc View 1 2 3 2 chunks +15 lines, -6 lines 0 comments Download
M ui/views/mus/surface_context_factory.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (23 generated)
sadrul
4 years ago (2016-12-19 20:10:44 UTC) #12
sadrul
+jbauman@ too, especially for the change in gpu.cc
4 years ago (2016-12-19 21:24:02 UTC) #16
msw
I don't know this code well, but your changes seem reasonable. lgtm with nits https://codereview.chromium.org/2586323002/diff/40001/services/ui/public/cpp/BUILD.gn ...
4 years ago (2016-12-19 21:33:33 UTC) #17
jbauman
lgtm
4 years ago (2016-12-19 22:16:22 UTC) #18
sadrul
https://codereview.chromium.org/2586323002/diff/40001/services/ui/public/cpp/BUILD.gn File services/ui/public/cpp/BUILD.gn (right): https://codereview.chromium.org/2586323002/diff/40001/services/ui/public/cpp/BUILD.gn#newcode34 services/ui/public/cpp/BUILD.gn:34: "//mojo/public/cpp/system", On 2016/12/19 21:33:33, msw wrote: > nit: no ...
4 years ago (2016-12-20 03:53:20 UTC) #21
sadrul
+jam@ for content/renderer (also will TBR since code update for API change)
4 years ago (2016-12-20 04:08:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2586323002/60001
4 years ago (2016-12-20 04:34:59 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-20 05:48:08 UTC) #30
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/9f14d907cbfaa28b64223028d0ad27e3447e602d Cr-Commit-Position: refs/heads/master@{#439718}
4 years ago (2016-12-20 05:50:35 UTC) #32
Fady Samuel
3 years, 11 months ago (2016-12-31 21:43:53 UTC) #33
Message was sent while issue was closed.
On 2016/12/20 05:50:35, commit-bot: I haz the power wrote:
> Patchset 4 (id:??) landed as
> https://crrev.com/9f14d907cbfaa28b64223028d0ad27e3447e602d
> Cr-Commit-Position: refs/heads/master@{#439718}

Meta-API-boundary point:

   auto compositor_frame_sink = window->RequestCompositorFrameSink(
      compositor_frame_sink_type,
       gpu_->CreateContextProvider(gpu_->EstablishGpuChannelSync()),
       gpu_->gpu_memory_buffer_manager());

This API seems super weird. We are passing the Mus client library things it
should already know about! ui::Window (aura:Window now?) should know about gpu_,
it should know how to create a contextprovider, how to establish a gpu channel,
etc.

auto compositor_frame_sink = window->RequestCompositorFrameSink(); should be the
API to aspire for, in my opinion. WDYT?

Powered by Google App Engine
This is Rietveld 408576698