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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 3795fa7acf1e09a2c7472093ce1e3d2967cee6c1..1957805d06116075386f86a4f161103f6b8704d6 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -936,8 +936,8 @@ void GpuCommandBufferStub::OnRegisterGpuMemoryBuffer(
#if defined(OS_ANDROID)
// Verify that renderer is not trying to use a surface texture it doesn't own.
if (gpu_memory_buffer.type == gfx::SURFACE_TEXTURE_BUFFER &&
- gpu_memory_buffer.surface_texture_id.secondary_id !=
- channel()->client_id()) {
+ gpu_memory_buffer.gpu_memory_id.secondary_id !=
+ channel()->renderer_pid()) {
LOG(ERROR) << "Illegal surface texture ID for renderer.";
return;
}

Powered by Google App Engine
This is Rietveld 408576698