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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/child/child_gpu_memory_buffer_manager.h
diff --git a/content/child/child_gpu_memory_buffer_manager.h b/content/child/child_gpu_memory_buffer_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..981e70e9a875850add267c289403bc3960a0acb0
--- /dev/null
+++ b/content/child/child_gpu_memory_buffer_manager.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
+#define CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
+
+#include "cc/resources/gpu_memory_buffer_manager.h"
+#include "content/child/thread_safe_sender.h"
+
+namespace content {
+
+class ChildGpuMemoryBufferManager : public cc::GpuMemoryBufferManager {
+ public:
+ ChildGpuMemoryBufferManager(ThreadSafeSender* sender);
+ virtual ~ChildGpuMemoryBufferManager();
+
+ // Overridden from cc::GpuMemoryBufferManager:
+ virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
+ const gfx::Size& size,
+ gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage) override;
+ virtual gfx::GpuMemoryBuffer* GpuMemoryBufferFromClientBuffer(
+ ClientBuffer buffer) override;
+
+ private:
+ scoped_refptr<ThreadSafeSender> sender_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChildGpuMemoryBufferManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_CHILD_GPU_MEMORY_BUFFER_MANAGER_H_
« 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