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

Side by Side Diff: components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.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
(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_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_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 GpuMemoryBufferManagerMus : public gpu::GpuMemoryBufferManager {
14 public:
15 GpuMemoryBufferManagerMus();
16 ~GpuMemoryBufferManagerMus() override;
17
18 // Overridden from gpu::GpuMemoryBufferManager:
19 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
20 const gfx::Size& size,
21 gfx::BufferFormat format,
22 gfx::BufferUsage usage,
23 gpu::SurfaceHandle surface_handle) override;
24 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
25 const gfx::GpuMemoryBufferHandle& handle,
26 const gfx::Size& size,
27 gfx::BufferFormat format) override;
28 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId(
29 int client_id,
30 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override;
31 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
32 ClientBuffer buffer) override;
33 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
34 const gpu::SyncToken& sync_token) override;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferManagerMus);
38 };
39
40 } // namespace mus
41
42 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_GPU_MEMORY_BUFFER_MANAGER_MUS_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/gles2_context.cc ('k') | components/mus/public/cpp/lib/gpu_memory_buffer_manager_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698