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

Side by Side Diff: services/ui/public/cpp/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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define SERVICES_UI_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 11 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
12 #include "services/ui/common/mus_common_export.h"
13 12
14 namespace ui { 13 namespace ui {
15 14
16 class MUS_COMMON_EXPORT MojoGpuMemoryBufferManager 15 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
17 : public gpu::GpuMemoryBufferManager {
18 public: 16 public:
19 MojoGpuMemoryBufferManager(); 17 MojoGpuMemoryBufferManager();
20 ~MojoGpuMemoryBufferManager() override; 18 ~MojoGpuMemoryBufferManager() override;
21 19
22 // Overridden from gpu::GpuMemoryBufferManager: 20 // Overridden from gpu::GpuMemoryBufferManager:
23 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 21 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
24 const gfx::Size& size, 22 const gfx::Size& size,
25 gfx::BufferFormat format, 23 gfx::BufferFormat format,
26 gfx::BufferUsage usage, 24 gfx::BufferUsage usage,
27 gpu::SurfaceHandle surface_handle) override; 25 gpu::SurfaceHandle surface_handle) override;
28 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 26 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
29 const gfx::GpuMemoryBufferHandle& handle, 27 const gfx::GpuMemoryBufferHandle& handle,
30 const gfx::Size& size, 28 const gfx::Size& size,
31 gfx::BufferFormat format) override; 29 gfx::BufferFormat format) override;
32 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 30 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
33 ClientBuffer buffer) override; 31 ClientBuffer buffer) override;
34 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 32 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
35 const gpu::SyncToken& sync_token) override; 33 const gpu::SyncToken& sync_token) override;
36 34
37 private: 35 private:
38 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); 36 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
39 }; 37 };
40 38
41 } // namespace ui 39 } // namespace ui
42 40
43 #endif // SERVICES_UI_COMMON_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 41 #endif // SERVICES_UI_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/public/cpp/mojo_gpu_memory_buffer.cc ('k') | services/ui/public/cpp/mojo_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698