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

Side by Side Diff: components/mus/gpu/gpu_memory_buffer_manager_mus_local.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
« no previous file with comments | « components/mus/gpu/BUILD.gn ('k') | components/mus/gpu/gpu_memory_buffer_manager_mus_local.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
6 #define COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
7
8 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
9
10 namespace mus {
11
12 // A GpuMemoryBufferManager used locally.
13 class GpuMemoryBufferManagerMusLocal : public gpu::GpuMemoryBufferManager {
14 public:
15 GpuMemoryBufferManagerMusLocal(int gpu_client_id,
16 uint64_t gpu_client_tracing_id);
17 ~GpuMemoryBufferManagerMusLocal() override;
18
19 // Overridden from gpu::GpuMemoryBufferManager:
20 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
21 const gfx::Size& size,
22 gfx::BufferFormat format,
23 gfx::BufferUsage usage,
24 gpu::SurfaceHandle surface_handle) override;
25 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
26 const gfx::GpuMemoryBufferHandle& handle,
27 const gfx::Size& size,
28 gfx::BufferFormat format) override;
29 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId(
30 int client_id,
31 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override;
32 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
33 ClientBuffer buffer) override;
34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
35 const gpu::SyncToken& sync_token) override;
36
37 private:
38 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferManagerMusLocal);
39 };
40
41 } // namespace mus
42
43 #endif // COMPONENTS_MUS_GPU_GPU_MEMORY_BUFFER_MANAGER_MUS_LOCAL_H_
OLDNEW
« no previous file with comments | « components/mus/gpu/BUILD.gn ('k') | components/mus/gpu/gpu_memory_buffer_manager_mus_local.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698