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

Side by Side Diff: services/ui/common/mojo_gpu_memory_buffer_manager.h

Issue 2184943002: services/ui: Move some files into the client lib. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-gpu-in-mus-windows
Patch Set: . Created 4 years, 4 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 2015 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 SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
12 #include "services/ui/common/mus_common_export.h"
13
14 namespace ui {
15
16 class MUS_COMMON_EXPORT MojoGpuMemoryBufferManager
17 : public gpu::GpuMemoryBufferManager {
18 public:
19 MojoGpuMemoryBufferManager();
20 ~MojoGpuMemoryBufferManager() override;
21
22 // Overridden from gpu::GpuMemoryBufferManager:
23 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
24 const gfx::Size& size,
25 gfx::BufferFormat format,
26 gfx::BufferUsage usage,
27 gpu::SurfaceHandle surface_handle) override;
28 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
29 const gfx::GpuMemoryBufferHandle& handle,
30 const gfx::Size& size,
31 gfx::BufferFormat format) 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(MojoGpuMemoryBufferManager);
39 };
40
41 } // namespace ui
42
43 #endif // SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/common/mojo_gpu_memory_buffer.cc ('k') | services/ui/common/mojo_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698