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

Unified Diff: content/common/child_process_host_impl.cc

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: content/common/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index efdd925a62567da623952532d749a643eee0d50c..7d883357d0aa3b04493cb9a65ca17b00d2554334 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -308,11 +308,9 @@ void ChildProcessHostImpl::OnAllocateGpuMemoryBuffer(
uint32 height,
uint32 internalformat,
gfx::GpuMemoryBufferHandle* handle) {
- handle->type = gfx::SHARED_MEMORY_BUFFER;
- AllocateSharedMemory(
- width * height * GpuMemoryBufferImpl::BytesPerPixel(internalformat),
- peer_handle_,
- &handle->handle);
+ // TODO(jun.a.jiang): simply set the type to gfx::SURFACE_TEXTURE_BUFFER
+ // here and more is needed when this code snippet is reached.
+ handle->type = gfx::SURFACE_TEXTURE_BUFFER;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698