Index: gpu/command_buffer/service/texture_manager.cc |
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc |
index 1bce4948bab4498d66e1d86e61a57243830a66c7..70fd49f511ca59bc270048296f330a2363f3f98f 100644 |
--- a/gpu/command_buffer/service/texture_manager.cc |
+++ b/gpu/command_buffer/service/texture_manager.cc |
@@ -13,6 +13,7 @@ |
#include "base/bits.h" |
#include "base/lazy_instance.h" |
+#include "base/metrics/histogram_macros.h" |
#include "base/strings/stringprintf.h" |
#include "base/thread_task_runner_handle.h" |
#include "base/trace_event/memory_dump_manager.h" |
@@ -2262,6 +2263,13 @@ void TextureManager::DoTexImage( |
} |
} |
GLenum error = ERRORSTATE_PEEK_GL_ERROR(error_state, function_name); |
+ if (args.command_type == DoTexImageArguments::kTexImage3D) { |
+ LOCAL_HISTOGRAM_CUSTOM_ENUMERATION("GPU.Error.TexImage3D", error, |
rkaplow
2016/01/06 18:40:00
i think you mean UMA here - otherwise this is only
|
+ GetAllGLErrors()); |
+ } else { |
+ LOCAL_HISTOGRAM_CUSTOM_ENUMERATION("GPU.Error.TexImage2D", error, |
+ GetAllGLErrors()); |
+ } |
if (error == GL_NO_ERROR) { |
SetLevelInfo( |
texture_ref, args.target, args.level, args.internal_format, args.width, |