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

Unified Diff: components/view_manager/gles2/mojo_gpu_memory_buffer_manager.cc

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit warning Created 5 years, 6 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: components/view_manager/gles2/mojo_gpu_memory_buffer_manager.cc
diff --git a/components/view_manager/gles2/mojo_gpu_memory_buffer_manager.cc b/components/view_manager/gles2/mojo_gpu_memory_buffer_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5d49a200055090c7181e78de955da1b0064289f1
--- /dev/null
+++ b/components/view_manager/gles2/mojo_gpu_memory_buffer_manager.cc
@@ -0,0 +1,37 @@
+// Copyright 2015 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.
+
+#include "components/view_manager/gles2/mojo_gpu_memory_buffer_manager.h"
+
+#include "base/logging.h"
+#include "components/view_manager/gles2/mojo_gpu_memory_buffer.h"
+
+namespace gles2 {
+
+MojoGpuMemoryBufferManager::MojoGpuMemoryBufferManager() {
+}
+
+MojoGpuMemoryBufferManager::~MojoGpuMemoryBufferManager() {
+}
+
+scoped_ptr<gfx::GpuMemoryBuffer>
+MojoGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
+ const gfx::Size& size,
+ gfx::GpuMemoryBuffer::Format format,
+ gfx::GpuMemoryBuffer::Usage usage) {
+ return MojoGpuMemoryBufferImpl::Create(size, format, usage);
+}
+
+gfx::GpuMemoryBuffer*
+MojoGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer(
+ ClientBuffer buffer) {
+ return MojoGpuMemoryBufferImpl::FromClientBuffer(buffer);
+}
+
+void MojoGpuMemoryBufferManager::SetDestructionSyncPoint(
+ gfx::GpuMemoryBuffer* buffer, uint32 sync_point) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace gles2

Powered by Google App Engine
This is Rietveld 408576698