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

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

Issue 1412223009: Reland: GpuMemoryBuffer interface change: Map(**) to Map() and memory(plane); stride(plane) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win X64 compile fix Created 5 years, 2 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 | « cc/test/test_gpu_memory_buffer_manager.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 e0c6ccfcbb9dd17d5d8287a4f404f8deaefa6bcb..309746794e391ab3faf317241285321fe53acd0d 100644
--- a/components/mus/gles2/mojo_gpu_memory_buffer.h
+++ b/components/mus/gles2/mojo_gpu_memory_buffer.h
@@ -27,11 +27,12 @@ class MojoGpuMemoryBufferImpl : public gfx::GpuMemoryBuffer {
const unsigned char* GetMemory() const;
// Overridden from gfx::GpuMemoryBuffer:
- bool Map(void** data) override;
+ bool Map() override;
+ void* memory(size_t plane) override;
void Unmap() override;
gfx::Size GetSize() const override;
gfx::BufferFormat GetFormat() const override;
- void GetStride(int* stride) const override;
+ int stride(size_t plane) const override;
gfx::GpuMemoryBufferId GetId() const override;
gfx::GpuMemoryBufferHandle GetHandle() const override;
ClientBuffer AsClientBuffer() override;
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.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