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

Side by Side Diff: content/child/child_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CONTENT_CHILD_CHILD_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 12 matching lines...) Expand all
23 const gfx::Size& size, 23 const gfx::Size& size,
24 gfx::BufferFormat format, 24 gfx::BufferFormat format,
25 gfx::BufferUsage usage, 25 gfx::BufferUsage usage,
26 gpu::SurfaceHandle surface_handle) override; 26 gpu::SurfaceHandle surface_handle) override;
27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 27 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
28 const gfx::GpuMemoryBufferHandle& handle, 28 const gfx::GpuMemoryBufferHandle& handle,
29 const gfx::Size& size, 29 const gfx::Size& size,
30 gfx::BufferFormat format) override; 30 gfx::BufferFormat format) override;
31 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 31 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
32 const gpu::SyncToken& sync_token) override; 32 const gpu::SyncToken& sync_token) override;
33 std::unique_ptr<gfx::GpuFence> CreateGpuFence() override;
34 std::unique_ptr<gfx::GpuFence> CreateGpuFenceFromHandle(
35 const gfx::GpuFenceHandle& handle) override;
36 gfx::GpuFence* GpuFenceFromClientFence(ClientFence fence) override;
33 37
34 private: 38 private:
35 scoped_refptr<ThreadSafeSender> sender_; 39 scoped_refptr<ThreadSafeSender> sender_;
36 40
37 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); 41 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
38 }; 42 };
39 43
40 } // namespace content 44 } // namespace content
41 45
42 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 46 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698