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

Unified Diff: services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc

Issue 2194893002: services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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: services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc
diff --git a/services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc b/services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc
new file mode 100644
index 0000000000000000000000000000000000000000..684b998bcd317b771c265c1ee90745e41d7aa49a
--- /dev/null
+++ b/services/ui/surfaces/ozone_gpu_memory_buffer_manager.cc
@@ -0,0 +1,49 @@
+// Copyright 2016 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 "services/ui/surfaces/ozone_gpu_memory_buffer_manager.h"
+
+#include "gpu/command_buffer/common/gpu_memory_buffer_support.h"
+#include "services/ui/gles2/ozone_gpu_memory_buffer.h"
+#include "ui/gfx/buffer_types.h"
+
+namespace ui {
+
+OzoneGpuMemoryBufferManager::OzoneGpuMemoryBufferManager() {}
+
+OzoneGpuMemoryBufferManager::~OzoneGpuMemoryBufferManager() {}
+
+std::unique_ptr<gfx::GpuMemoryBuffer>
+OzoneGpuMemoryBufferManager::AllocateGpuMemoryBuffer(
+ const gfx::Size& size,
+ gfx::BufferFormat format,
+ gfx::BufferUsage usage,
+ gpu::SurfaceHandle surface_handle) {
+ return OzoneGpuMemoryBuffer::CreateOzoneGpuMemoryBuffer(
+ size, format, gfx::BufferUsage::SCANOUT, surface_handle);
+}
+
+std::unique_ptr<gfx::GpuMemoryBuffer>
+OzoneGpuMemoryBufferManager::CreateGpuMemoryBufferFromHandle(
+ const gfx::GpuMemoryBufferHandle& handle,
+ const gfx::Size& size,
+ gfx::BufferFormat format) {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+gfx::GpuMemoryBuffer*
+OzoneGpuMemoryBufferManager::GpuMemoryBufferFromClientBuffer(
+ ClientBuffer buffer) {
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+void OzoneGpuMemoryBufferManager::SetDestructionSyncToken(
+ gfx::GpuMemoryBuffer* buffer,
+ const gpu::SyncToken& sync_token) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace ui
« no previous file with comments | « services/ui/surfaces/ozone_gpu_memory_buffer_manager.h ('k') | services/ui/surfaces/surfaces_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698