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

Side by Side Diff: blimp/client/feature/compositor/blimp_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
« no previous file with comments | « no previous file | blimp/client/feature/compositor/blimp_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_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 10 matching lines...) Expand all
21 // Overridden from gpu::GpuMemoryBufferManager: 21 // Overridden from gpu::GpuMemoryBufferManager:
22 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 22 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
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 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBufferFromClientId(
32 int client_id,
33 const gfx::GpuMemoryBufferId& gpu_memory_buffer_id) override;
31 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 34 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
32 ClientBuffer buffer) override; 35 ClientBuffer buffer) override;
33 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer, 36 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
34 const gpu::SyncToken& sync_token) override; 37 const gpu::SyncToken& sync_token) override;
35 38
36 private: 39 private:
37 DISALLOW_COPY_AND_ASSIGN(BlimpGpuMemoryBufferManager); 40 DISALLOW_COPY_AND_ASSIGN(BlimpGpuMemoryBufferManager);
38 }; 41 };
39 42
40 } // namespace client 43 } // namespace client
41 } // namespace blimp 44 } // namespace blimp
42 45
43 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_ 46 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/feature/compositor/blimp_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698