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

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

Issue 2383753002: gpu: Add GpuFence framework.
Patch Set: rebase 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
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 UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define UI_AURA_MUS_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"
(...skipping 11 matching lines...) Expand all
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 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 30 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
31 const gpu::SyncToken& sync_token) override; 31 const gpu::SyncToken& sync_token) override;
32 std::unique_ptr<gfx::GpuFence> CreateGpuFence() override;
33 std::unique_ptr<gfx::GpuFence> CreateGpuFenceFromHandle(
34 const gfx::GpuFenceHandle& handle) override;
35 gfx::GpuFence* GpuFenceFromClientFence(ClientFence fence) override;
32 36
33 private: 37 private:
34 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager); 38 DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferManager);
35 }; 39 };
36 40
37 } // namespace aura 41 } // namespace aura
38 42
39 #endif // UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_ 43 #endif // UI_AURA_MUS_MOJO_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698