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

Side by Side Diff: ui/aura/mus/mojo_gpu_memory_buffer_manager.h

Issue 2464123003: Enabling Aura-Mus clients to submit frames to Mus. (Closed)
Patch Set: Rebase, addressing feedback, removing some unneded imports/deps. Created 4 years, 1 month 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 | « ui/aura/mus/mojo_gpu_memory_buffer.cc ('k') | ui/aura/mus/mojo_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define SERVICES_UI_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define UI_AURA_MUS_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 12
13 namespace ui { 13 namespace aura {
14 14
15 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 15 class MojoGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
16 public: 16 public:
17 MojoGpuMemoryBufferManager(); 17 MojoGpuMemoryBufferManager();
18 ~MojoGpuMemoryBufferManager() override; 18 ~MojoGpuMemoryBufferManager() override;
19 19
20 // Overridden from gpu::GpuMemoryBufferManager: 20 // Overridden from gpu::GpuMemoryBufferManager:
21 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 21 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
22 const gfx::Size& size, 22 const gfx::Size& size,
23 gfx::BufferFormat format, 23 gfx::BufferFormat format,
24 gfx::BufferUsage usage, 24 gfx::BufferUsage usage,
25 gpu::SurfaceHandle surface_handle) override; 25 gpu::SurfaceHandle surface_handle) override;
26 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 26 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
27 const gfx::GpuMemoryBufferHandle& handle, 27 const gfx::GpuMemoryBufferHandle& handle,
28 const gfx::Size& size, 28 const gfx::Size& size,
29 gfx::BufferFormat format) override; 29 gfx::BufferFormat format) override;
30 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 30 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
31 ClientBuffer buffer) override; 31 ClientBuffer buffer) override;
32 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 32 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
33 const gpu::SyncToken& sync_token) override; 33 const gpu::SyncToken& sync_token) override;
34 34
35 private: 35 private:
36 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); 36 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
37 }; 37 };
38 38
39 } // namespace ui 39 } // namespace aura
40 40
41 #endif // SERVICES_UI_PUBLIC_CPP_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 41 #endif // UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/mojo_gpu_memory_buffer.cc ('k') | ui/aura/mus/mojo_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698