New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 634377 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Move client-lib code into //services/ui/public

Project Member Reported by sadrul@chromium.org, Aug 4 2016

Issue description

Some client-lib code lives in //services/ui/common. These should move into //services/ui/public instead.
 
Project Member

Comment 1 by bugdroid1@chromium.org, Aug 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/62c311322b6343e6fd148f9b81d500e795242228

commit 62c311322b6343e6fd148f9b81d500e795242228
Author: sadrul <sadrul@chromium.org>
Date: Thu Aug 11 04:13:17 2016

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

Review-Url: https://codereview.chromium.org/2233003003
Cr-Commit-Position: refs/heads/master@{#411262}

[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/ash/mus/window_manager_application.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/content/renderer/mus/render_widget_mus_connection.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/content/renderer/mus/render_widget_mus_connection.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/content/renderer/render_thread_impl.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/common/gpu_service.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/common/gpu_service.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/demo/mus_demo.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/bitmap_uploader.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/bitmap_uploader.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/context_provider.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/context_provider.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/gles2_context.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/gles2_context.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/output_surface.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/services/ui/public/cpp/output_surface.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/ui/views/mus/native_widget_mus.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/ui/views/mus/surface_context_factory.cc
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/ui/views/mus/surface_context_factory.h
[modify] https://crrev.com/62c311322b6343e6fd148f9b81d500e795242228/ui/views/mus/window_manager_connection.cc

Project Member

Comment 2 by bugdroid1@chromium.org, Aug 11 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9909744795ee6b8039df2d9301825fd4c155ec0c

commit 9909744795ee6b8039df2d9301825fd4c155ec0c
Author: sadrul <sadrul@chromium.org>
Date: Thu Aug 11 16:10:12 2016

services/ui: Move some files into the client lib.

Move the following out of ui/common into the public client-lib:
. GpuService
. GpuMemoryBufferImpl
. MojoGpuMemoryBuffer
. MojoGpuMemoryBufferManager
. MojoBufferBacking
These are only used by the clients, so there's no reason to build
these into the server as well.

BUG= 634377 
TBR=ben@ for trivial content/ changes.

Review-Url: https://codereview.chromium.org/2184943002
Cr-Commit-Position: refs/heads/master@{#411345}

[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/ash/mus/window_manager_application.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/chrome/browser/DEPS
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/chrome/browser/chrome_content_browser_client.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/browser/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/browser/compositor/DEPS
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/browser/compositor/gpu_process_transport_factory.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/browser/renderer_host/DEPS
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/renderer/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/content/renderer/render_thread_impl.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/mash/login/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/common/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/demo/mus_demo.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/command_buffer_client_impl.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/gles2_context.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/gpu_memory_buffer_impl.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/gpu_memory_buffer_impl.h
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/gpu_service.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/gpu_service.h
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_buffer_backing.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_buffer_backing.h
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_gpu_memory_buffer.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_gpu_memory_buffer.h
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_gpu_memory_buffer_manager.cc
[rename] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/mojo_gpu_memory_buffer_manager.h
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/public/cpp/tests/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/services/ui/surfaces/direct_output_surface_ozone.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/ui/views/mus/BUILD.gn
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/ui/views/mus/surface_context_factory.cc
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/ui/views/mus/surface_context_factory.h
[modify] https://crrev.com/9909744795ee6b8039df2d9301825fd4c155ec0c/ui/views/mus/window_manager_connection.cc

Comment 3 by sadrul@chromium.org, Aug 17 2016

Status: Fixed (was: Started)
Labels: VerifyIn-54
bulk verified
Status: Verified (was: Fixed)
Components: -MUS Internals>Services>WindowService

Sign in to add a comment