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

Issue 2233003003: services/ui: Inject GpuService instance where needed, instead of singleton. (Closed)

Created:
4 years, 4 months ago by sadrul
Modified:
4 years, 4 months ago
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, tfarina, jam, darin-cc_chromium.org, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

services/ui: Inject GpuService instance where needed, instead of singleton. ui::GLES2Context uses the GpuService instance to establish a channel to the GPU process. Instead of using the global singleton, pass through the GpuService instance to ui::GLES2Context through the ui::OutputSurface. This removes the last usage of the GpuService singleton, which means this code can be moved into the client-lib, where it belongs. BUG=634377 TBR=ben@ for change related to new API in content/renderer Committed: https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228 Cr-Commit-Position: refs/heads/master@{#411262}

Patch Set 1 #

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -47 lines) Patch
M ash/mus/window_manager_application.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/mus/render_widget_mus_connection.h View 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/mus/render_widget_mus_connection.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/common/gpu_service.h View 1 chunk +0 lines, -1 line 0 comments Download
M services/ui/common/gpu_service.cc View 2 chunks +1 line, -12 lines 0 comments Download
M services/ui/demo/mus_demo.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/cpp/bitmap_uploader.h View 1 3 chunks +6 lines, -4 lines 0 comments Download
M services/ui/public/cpp/bitmap_uploader.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/context_provider.h View 2 chunks +3 lines, -1 line 0 comments Download
M services/ui/public/cpp/context_provider.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/gles2_context.h View 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/public/cpp/gles2_context.cc View 4 chunks +5 lines, -6 lines 0 comments Download
M services/ui/public/cpp/output_surface.h View 1 chunk +4 lines, -1 line 0 comments Download
M services/ui/public/cpp/output_surface.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.h View 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/mus/surface_context_factory.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M ui/views/mus/window_manager_connection.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
sadrul
4 years, 4 months ago (2016-08-11 01:12:57 UTC) #3
sky
I think your nickname should be something like 'removes singletons' ;) LGTM
4 years, 4 months ago (2016-08-11 03:28:29 UTC) #7
sadrul
TBR'ing ben@ for change related to new API in content/renderer On 2016/08/11 03:28:29, sky wrote: ...
4 years, 4 months ago (2016-08-11 04:09:19 UTC) #10
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/2233003003/20001
4 years, 4 months ago (2016-08-11 04:09:56 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-11 04:13:33 UTC) #14
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 04:15:18 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228
Cr-Commit-Position: refs/heads/master@{#411262}

Powered by Google App Engine
This is Rietveld 408576698