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

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

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update 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
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 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_
6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ 6 #define COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_
7 7
8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h" 8 #include "components/mus/public/interfaces/gpu_memory_buffer.mojom.h"
9 #include "components/mus/public/interfaces/gpu_service.mojom.h" 9 #include "components/mus/public/interfaces/gpu_service.mojom.h"
10 #include "mojo/public/cpp/bindings/interface_request.h" 10 #include "mojo/public/cpp/bindings/interface_request.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 mojom::BufferFormat format, 42 mojom::BufferFormat format,
43 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback& 43 const mojom::GpuService::CreateGpuMemoryBufferFromHandleCallback&
44 callback) override; 44 callback) override;
45 45
46 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id, 46 void DestroyGpuMemoryBuffer(mojom::GpuMemoryBufferIdPtr id,
47 const gpu::SyncToken& sync_token) override; 47 const gpu::SyncToken& sync_token) override;
48 48
49 private: 49 private:
50 mojo::StrongBinding<GpuService> binding_; 50 mojo::StrongBinding<GpuService> binding_;
51 51
52 // A unique client id for constructing the GpuChannel.
53 const int32_t client_id_;
54
55 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl); 52 DISALLOW_COPY_AND_ASSIGN(GpuServiceImpl);
56 }; 53 };
57 54
58 } // namespace mus 55 } // namespace mus
59 56
60 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_ 57 #endif // COMPONENTS_MUS_GPU_GPU_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698