| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 if (!animation_update_pending_ && !paint_aggregator_.HasPendingUpdate()) { | 709 if (!animation_update_pending_ && !paint_aggregator_.HasPendingUpdate()) { |
| 710 TRACE_EVENT0("renderer", "EarlyOut_NoPendingUpdate"); | 710 TRACE_EVENT0("renderer", "EarlyOut_NoPendingUpdate"); |
| 711 return; | 711 return; |
| 712 } | 712 } |
| 713 | 713 |
| 714 // Continue painting if necessary... | 714 // Continue painting if necessary... |
| 715 DoDeferredUpdateAndSendInputAck(); | 715 DoDeferredUpdateAndSendInputAck(); |
| 716 } | 716 } |
| 717 | 717 |
| 718 void RenderWidget::OnHandleInputEvent(const WebKit::WebInputEvent* input_event, | 718 void RenderWidget::OnHandleInputEvent(const WebKit::WebInputEvent* input_event, |
| 719 const cc::LatencyInfo& latency_info, | 719 const ui::LatencyInfo& latency_info, |
| 720 bool is_keyboard_shortcut) { | 720 bool is_keyboard_shortcut) { |
| 721 handling_input_event_ = true; | 721 handling_input_event_ = true; |
| 722 if (!input_event) { | 722 if (!input_event) { |
| 723 handling_input_event_ = false; | 723 handling_input_event_ = false; |
| 724 return; | 724 return; |
| 725 } | 725 } |
| 726 | 726 |
| 727 const char* const event_name = GetEventName(input_event->type); | 727 const char* const event_name = GetEventName(input_event->type); |
| 728 TRACE_EVENT1("renderer", "RenderWidget::OnHandleInputEvent", | 728 TRACE_EVENT1("renderer", "RenderWidget::OnHandleInputEvent", |
| 729 "event", event_name); | 729 "event", event_name); |
| (...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2389 | 2389 |
| 2390 if (!context->Initialize( | 2390 if (!context->Initialize( |
| 2391 attributes, | 2391 attributes, |
| 2392 false /* bind generates resources */, | 2392 false /* bind generates resources */, |
| 2393 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) | 2393 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE)
) |
| 2394 return NULL; | 2394 return NULL; |
| 2395 return context.release(); | 2395 return context.release(); |
| 2396 } | 2396 } |
| 2397 | 2397 |
| 2398 } // namespace content | 2398 } // namespace content |
| OLD | NEW |