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

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

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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 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 "content/child/thread_safe_sender.h" 8 #include "content/child/thread_safe_sender.h"
9 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 9 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager { 13 class ChildGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
14 public: 14 public:
15 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender); 15 explicit ChildGpuMemoryBufferManager(ThreadSafeSender* sender);
16 ~ChildGpuMemoryBufferManager() override; 16 ~ChildGpuMemoryBufferManager() override;
17 17
18 // Overridden from gpu::GpuMemoryBufferManager: 18 // Overridden from gpu::GpuMemoryBufferManager:
19 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 19 scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
20 const gfx::Size& size, 20 const gfx::Size& size,
21 gfx::GpuMemoryBuffer::Format format, 21 gfx::BufferFormat format,
22 gfx::GpuMemoryBuffer::Usage usage) override; 22 gfx::BufferUsage usage) override;
23 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer( 23 gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
24 ClientBuffer buffer) override; 24 ClientBuffer buffer) override;
25 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer, 25 void SetDestructionSyncPoint(gfx::GpuMemoryBuffer* buffer,
26 uint32 sync_point) override; 26 uint32 sync_point) override;
27 27
28 private: 28 private:
29 scoped_refptr<ThreadSafeSender> sender_; 29 scoped_refptr<ThreadSafeSender> sender_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager); 31 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
32 }; 32 };
33 33
34 } // namespace content 34 } // namespace content
35 35
36 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_ 36 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/child/child_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698