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

Side by Side Diff: cc/test/test_gpu_memory_buffer_manager.h

Issue 1975023002: Add GpuMemoryBuffer CreateFromClientId interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just the interface Created 4 years, 7 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 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 CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define CC_TEST_TEST_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 13 matching lines...) Expand all
24 // Overridden from gpu::GpuMemoryBufferManager: 24 // Overridden from gpu::GpuMemoryBufferManager:
25 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 25 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
26 const gfx::Size& size, 26 const gfx::Size& size,
27 gfx::BufferFormat format, 27 gfx::BufferFormat format,
28 gfx::BufferUsage usage, 28 gfx::BufferUsage usage,
29 gpu::SurfaceHandle surface_handle) override; 29 gpu::SurfaceHandle surface_handle) override;
30 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle( 30 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromHandle(
31 const gfx::GpuMemoryBufferHandle& handle, 31 const gfx::GpuMemoryBufferHandle& handle,
32 const gfx::Size& size, 32 const gfx::Size& size,
33 gfx::BufferFormat format) override; 33 gfx::BufferFormat format) override;
34 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId(
35 int client_id,
36 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override;
34 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 37 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
35 ClientBuffer buffer) override; 38 ClientBuffer buffer) override;
36 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 39 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
37 const gpu::SyncToken& sync_token) override; 40 const gpu::SyncToken& sync_token) override;
38 41
39 private: 42 private:
40 DISALLOW_COPY_AND_ASSIGN(TestGpuMemoryBufferManager); 43 DISALLOW_COPY_AND_ASSIGN(TestGpuMemoryBufferManager);
41 }; 44 };
42 45
43 } // namespace cc 46 } // namespace cc
44 47
45 #endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_ 48 #endif // CC_TEST_TEST_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc ('k') | cc/test/test_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698