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

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

Issue 1245683004: Mandoline: Merge Surfaces and Views apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed bot issues (I hope) Created 5 years, 4 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.cc
diff --git a/components/view_manager/gles2/mojo_gpu_memory_buffer.cc b/components/view_manager/gles2/mojo_gpu_memory_buffer.cc
index 0efa398ee49c7c51dc49783b42d519e5e40b4f80..1354d7c265da40346cee6f6530b7ae0f79191a4e 100644
--- a/components/view_manager/gles2/mojo_gpu_memory_buffer.cc
+++ b/components/view_manager/gles2/mojo_gpu_memory_buffer.cc
@@ -113,6 +113,10 @@ MojoGpuMemoryBufferImpl* MojoGpuMemoryBufferImpl::FromClientBuffer(
return reinterpret_cast<MojoGpuMemoryBufferImpl*>(buffer);
}
+const unsigned char* MojoGpuMemoryBufferImpl::GetMemory() const {
+ return static_cast<const unsigned char*>(shared_memory_->memory());
+}
+
bool MojoGpuMemoryBufferImpl::Map(void** data) {
DCHECK(!mapped_);
if (!shared_memory_->Map(BufferSizeInBytes(size_, format_)))
« no previous file with comments | « components/view_manager/gles2/mojo_gpu_memory_buffer.h ('k') | components/view_manager/native_viewport/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698