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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 2226193002: Not for commit: crash GPU process in glCreateGpuMemoryBufferImageCHROMIUM. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_integration_test.py ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index f80481c3001520f4eb54e7d707998debfa207a14..a940e052fea03fbc69470d1fe2eacf0ab624852f 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -6125,10 +6125,13 @@ GLuint GLES2Implementation::CreateGpuMemoryBufferImageCHROMIUMHelper(
int32_t image_id = gpu_control_->CreateGpuMemoryBufferImage(
width, height, internalformat, usage);
if (image_id < 0) {
+ fprintf(stderr, "GL_OUT_OF_MEMORY in glCreateGpuMemoryBufferImageCHROMIUM\n");
SetGLError(GL_OUT_OF_MEMORY,
"glCreateGpuMemoryBufferImageCHROMIUM",
"image_id < 0");
return 0;
+ } else {
+ fprintf(stderr, "Valid image_id %d in glCreateGpuMemoryBufferImageCHROMIUM\n", (int) image_id);
}
return image_id;
}
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_integration_test.py ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698