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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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
(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 "cc/resources/gpu_memory_buffer_manager.h"
9 #include "content/child/thread_safe_sender.h"
10
11 namespace content {
12
13 class ChildGpuMemoryBufferManager : public cc::GpuMemoryBufferManager {
14 public:
15 ChildGpuMemoryBufferManager(ThreadSafeSender* sender);
16 virtual ~ChildGpuMemoryBufferManager();
17
18 // Overridden from cc::GpuMemoryBufferManager:
19 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
20 const gfx::Size& size,
21 gfx::GpuMemoryBuffer::Format format,
22 gfx::GpuMemoryBuffer::Usage usage) override;
23 virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
24 ClientBuffer buffer) override;
25
26 private:
27 scoped_refptr<ThreadSafeSender> sender_;
28
29 DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.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