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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc

Issue 1240353002: ozone: rename to GpuMemoryBuffer(Factory|Impl)OzoneNativePixmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address nits in comments Created 5 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: content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc b/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
deleted file mode 100644
index 9a427a9194fe94e95f51b885621e046a3ff0415c..0000000000000000000000000000000000000000
--- a/content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 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.
-
-#include "content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h"
-
-#include "ui/ozone/public/surface_factory_ozone.h"
-
-namespace content {
-
-GpuMemoryBufferImplOzoneNativeBuffer::GpuMemoryBufferImplOzoneNativeBuffer(
- gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- Format format,
- const DestructionCallback& callback)
- : GpuMemoryBufferImpl(id, size, format, callback) {
-}
-
-GpuMemoryBufferImplOzoneNativeBuffer::~GpuMemoryBufferImplOzoneNativeBuffer() {
-}
-
-// static
-scoped_ptr<GpuMemoryBufferImpl>
-GpuMemoryBufferImplOzoneNativeBuffer::CreateFromHandle(
- const gfx::GpuMemoryBufferHandle& handle,
- const gfx::Size& size,
- Format format,
- Usage usage,
- const DestructionCallback& callback) {
- return make_scoped_ptr<GpuMemoryBufferImpl>(
- new GpuMemoryBufferImplOzoneNativeBuffer(
- handle.id, size, format, callback));
-}
-
-bool GpuMemoryBufferImplOzoneNativeBuffer::Map(void** data) {
- NOTREACHED();
- return false;
-}
-
-void GpuMemoryBufferImplOzoneNativeBuffer::Unmap() {
- NOTREACHED();
-}
-
-void GpuMemoryBufferImplOzoneNativeBuffer::GetStride(int* stride) const {
- NOTREACHED();
-}
-
-gfx::GpuMemoryBufferHandle GpuMemoryBufferImplOzoneNativeBuffer::GetHandle()
- const {
- gfx::GpuMemoryBufferHandle handle;
- handle.type = gfx::OZONE_NATIVE_BUFFER;
- handle.id = id_;
- return handle;
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698