Index: content/common/gpu/gpu_channel_manager.cc |
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc |
index d52bca38c8e78b91502d738a6e417968a354b3fe..437990236a861db925fbec6942ef672c86590ae9 100644 |
--- a/content/common/gpu/gpu_channel_manager.cc |
+++ b/content/common/gpu/gpu_channel_manager.cc |
@@ -11,6 +11,7 @@ |
#include "content/common/gpu/gpu_memory_manager.h" |
#include "content/common/gpu/gpu_messages.h" |
#include "content/common/gpu/sync_point_manager.h" |
+#include "content/common/input/web_input_event_traits.h" |
#include "content/common/message_router.h" |
#include "gpu/command_buffer/service/feature_info.h" |
#include "gpu/command_buffer/service/gpu_switches.h" |
@@ -160,6 +161,7 @@ bool GpuChannelManager::OnMessageReceived(const IPC::Message& msg) { |
OnCreateViewCommandBuffer) |
IPC_MESSAGE_HANDLER(GpuMsg_DestroyGpuMemoryBuffer, OnDestroyGpuMemoryBuffer) |
IPC_MESSAGE_HANDLER(GpuMsg_LoadedShader, OnLoadedShader) |
+ IPC_MESSAGE_HANDLER(GpuMsg_HandleInputEvent, OnHandleInputEvent) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP() |
return handled; |
@@ -263,6 +265,15 @@ void GpuChannelManager::OnDestroyGpuMemoryBuffer( |
} |
} |
+void GpuChannelManager::OnHandleInputEvent( |
+ const blink::WebInputEvent* input_event, |
+ bool is_keyboard_shortcut) { |
+ const char* const event_name = |
+ WebInputEventTraits::GetName(input_event->type); |
+ TRACE_EVENT1( |
+ "gpu", "GpuChannelManager::OnHandleInputEvent", "event", event_name); |
+} |
+ |
void GpuChannelManager::OnLoadedShader(std::string program_proto) { |
if (program_cache()) |
program_cache()->LoadProgram(program_proto); |