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

Side by Side Diff: content/child/child_gpu_memory_buffer_manager.h

Issue 2514923002: content: Use mus client-lib's gpu-service from renderers. (Closed)
Patch Set: . Created 4 years 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 | « content/child/BUILD.gn ('k') | content/child/child_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
6 #define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "content/child/thread_safe_sender.h"
12 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
13
14 namespace content {
15
16 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
17 public:
18 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender);
19 ~ChildGpuMemoryBufferManager() override;
20
21 // Overridden from gpu::GpuMemoryBufferManager:
22 std::unique_ptr<gfx::GpuMemoryBuffer> CreateGpuMemoryBuffer(
23 const gfx::Size& size,
24 gfx::BufferFormat format,
25 gfx::BufferUsage usage,
26 gpu::SurfaceHandle surface_handle) override;
27 void SetDestructionSyncToken(gfx::GpuMemoryBuffer* buffer,
28 const gpu::SyncToken& sync_token) override;
29
30 private:
31 scoped_refptr<ThreadSafeSender> sender_;
32
33 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/child/BUILD.gn ('k') | content/child/child_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698