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

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

Issue 1857243005: Scan-out capable buffers (aka ui::NativePixmap) for Mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix for windows Created 4 years, 8 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
« no previous file with comments | « components/mus/gles2/gpu_memory_buffer_impl.cc ('k') | components/mus/gles2/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/mojo_gpu_memory_buffer.h
diff --git a/components/mus/gles2/mojo_gpu_memory_buffer.h b/components/mus/gles2/mojo_gpu_memory_buffer.h
index afed2aa5de91a108bdb1276b4eb11311714e701a..d4e54c75634968f825012e04adc2d5b1a22dbb59 100644
--- a/components/mus/gles2/mojo_gpu_memory_buffer.h
+++ b/components/mus/gles2/mojo_gpu_memory_buffer.h
@@ -9,12 +9,13 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "components/mus/gles2/gpu_memory_buffer_impl.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/gpu_memory_buffer.h"
namespace mus {
-class MojoGpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
+class MojoGpuMemoryBufferImpl : public mus::GpuMemoryBufferImpl {
public:
MojoGpuMemoryBufferImpl(const gfx::Size& size,
gfx::BufferFormat format,
@@ -33,18 +34,14 @@ class MojoGpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
bool Map() override;
void* memory(size_t plane) override;
void Unmap() override;
- gfx::Size GetSize() const override;
- gfx::BufferFormat GetFormat() const override;
int stride(size_t plane) const override;
- gfx::GpuMemoryBufferId GetId() const override;
gfx::GpuMemoryBufferHandle GetHandle() const override;
- ClientBuffer AsClientBuffer() override;
+
+ // Overridden from gfx::GpuMemoryBufferImpl
+ gfx::GpuMemoryBufferType GetBufferType() const override;
private:
- const gfx::Size size_;
- gfx::BufferFormat format_;
scoped_ptr<base::SharedMemory> shared_memory_;
- bool mapped_;
DISALLOW_COPY_AND_ASSIGN(MojoGpuMemoryBufferImpl);
};
« no previous file with comments | « components/mus/gles2/gpu_memory_buffer_impl.cc ('k') | components/mus/gles2/mojo_gpu_memory_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698