Index: components/view_manager/gles2/mojo_gpu_memory_buffer.h |
diff --git a/components/view_manager/gles2/mojo_gpu_memory_buffer.h b/components/view_manager/gles2/mojo_gpu_memory_buffer.h |
deleted file mode 100644 |
index 70ea9c9f37fede39c26487631bc6c6fbdf9beb78..0000000000000000000000000000000000000000 |
--- a/components/view_manager/gles2/mojo_gpu_memory_buffer.h |
+++ /dev/null |
@@ -1,50 +0,0 @@ |
-// 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. |
- |
-#ifndef COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_H_ |
-#define COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_H_ |
- |
-#include "base/memory/scoped_ptr.h" |
-#include "ui/gfx/geometry/size.h" |
-#include "ui/gfx/gpu_memory_buffer.h" |
- |
-namespace gles2 { |
- |
-class MojoGpuMemoryBufferImpl : public gfx::GpuMemoryBuffer { |
- public: |
- MojoGpuMemoryBufferImpl(const gfx::Size& size, |
- gfx::BufferFormat format, |
- scoped_ptr<base::SharedMemory> shared_memory); |
- ~MojoGpuMemoryBufferImpl() override; |
- |
- static scoped_ptr<gfx::GpuMemoryBuffer> Create(const gfx::Size& size, |
- gfx::BufferFormat format, |
- gfx::BufferUsage usage); |
- |
- static MojoGpuMemoryBufferImpl* FromClientBuffer(ClientBuffer buffer); |
- |
- const unsigned char* GetMemory() const; |
- |
- // Overridden from gfx::GpuMemoryBuffer: |
- bool Map(void** data) override; |
- void Unmap() override; |
- bool IsMapped() const override; |
- gfx::BufferFormat GetFormat() const override; |
- void GetStride(int* stride) const override; |
- gfx::GpuMemoryBufferId GetId() const override; |
- gfx::GpuMemoryBufferHandle GetHandle() const override; |
- ClientBuffer AsClientBuffer() override; |
- |
- private: |
- const gfx::Size size_; |
- gfx::BufferFormat format_; |
- scoped_ptr<base::SharedMemory> shared_memory_; |
- bool mapped_; |
- |
- DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferImpl); |
-}; |
- |
-} // gles2 |
- |
-#endif // COMPONENTS_VIEW_MANAGER_GLES2_MOJO_GPU_MEMORY_BUFFER_H_ |