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

Unified Diff: components/view_manager/gles2/mojo_gpu_memory_buffer.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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.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_
« no previous file with comments | « components/view_manager/gles2/mojo_buffer_backing.cc ('k') | components/view_manager/gles2/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698