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

Side by Side Diff: components/mus/gpu/gpu_service_impl.cc

Issue 2056833002: WIP HW (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/mus/common/gpu_service.cc ('k') | components/mus/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/gpu/gpu_service_impl.h" 5 #include "components/mus/gpu/gpu_service_impl.h"
6 6
7 #include "components/mus/common/gpu_type_converters.h" 7 #include "components/mus/common/gpu_type_converters.h"
8 #include "components/mus/gpu/gpu_service_mus.h" 8 #include "components/mus/gpu/gpu_service_mus.h"
9 #include "services/shell/public/cpp/connection.h" 9 #include "services/shell/public/cpp/connection.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 GpuServiceImpl::GpuServiceImpl( 25 GpuServiceImpl::GpuServiceImpl(
26 mojo::InterfaceRequest<mojom::GpuService> request, 26 mojo::InterfaceRequest<mojom::GpuService> request,
27 shell::Connection* connection) 27 shell::Connection* connection)
28 : binding_(this, std::move(request)) {} 28 : binding_(this, std::move(request)) {}
29 29
30 GpuServiceImpl::~GpuServiceImpl() {} 30 GpuServiceImpl::~GpuServiceImpl() {}
31 31
32 void GpuServiceImpl::EstablishGpuChannel( 32 void GpuServiceImpl::EstablishGpuChannel(
33 const mojom::GpuService::EstablishGpuChannelCallback& callback) { 33 const mojom::GpuService::EstablishGpuChannelCallback& callback) {
34 fprintf(stderr, "EEE %d %s %d\n", getpid(), __PRETTY_FUNCTION__, __LINE__);
34 GpuServiceMus* service = GpuServiceMus::GetInstance(); 35 GpuServiceMus* service = GpuServiceMus::GetInstance();
35 // TODO(penghuang): crbug.com/617415 figure out how to generate a meaningful 36 // TODO(penghuang): crbug.com/617415 figure out how to generate a meaningful
36 // tracing id. 37 // tracing id.
37 const uint64_t client_tracing_id = 0; 38 const uint64_t client_tracing_id = 0;
38 // TODO(penghuang): windows server may want to control those flags. 39 // TODO(penghuang): windows server may want to control those flags.
39 // Add a private interface for windows server. 40 // Add a private interface for windows server.
40 const bool preempts = false; 41 const bool preempts = false;
41 const bool allow_view_command_buffers = false; 42 const bool allow_view_command_buffers = false;
42 const bool allow_real_time_streams = false; 43 const bool allow_real_time_streams = false;
43 service->EstablishGpuChannel( 44 service->EstablishGpuChannel(
(...skipping 20 matching lines...) Expand all
64 callback) { 65 callback) {
65 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
66 } 67 }
67 68
68 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 69 void GpuServiceImpl::DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
69 const gpu::SyncToken& sync_token) { 70 const gpu::SyncToken& sync_token) {
70 NOTIMPLEMENTED(); 71 NOTIMPLEMENTED();
71 } 72 }
72 73
73 } // namespace mus 74 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/common/gpu_service.cc ('k') | components/mus/public/cpp/lib/gles2_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698