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

Side by Side Diff: content/renderer/render_widget.cc

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); 500 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff");
501 return; 501 return;
502 } 502 }
503 503
504 // Continue painting if necessary... 504 // Continue painting if necessary...
505 DoDeferredUpdateAndSendInputAck(); 505 DoDeferredUpdateAndSendInputAck();
506 } 506 }
507 507
508 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { 508 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) {
509 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); 509 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent");
510 void* iter = NULL; 510 PickleIterator iter(message);
511 511
512 const char* data; 512 const char* data;
513 int data_length; 513 int data_length;
514 handling_input_event_ = true; 514 handling_input_event_ = true;
515 if (!message.ReadData(&iter, &data, &data_length)) { 515 if (!message.ReadData(&iter, &data, &data_length)) {
516 handling_input_event_ = false; 516 handling_input_event_ = false;
517 return; 517 return;
518 } 518 }
519 519
520 const WebInputEvent* input_event = 520 const WebInputEvent* input_event =
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 } 1662 }
1663 } 1663 }
1664 1664
1665 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1665 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1666 return false; 1666 return false;
1667 } 1667 }
1668 1668
1669 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1669 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1670 return false; 1670 return false;
1671 } 1671 }
OLDNEW
« no previous file with comments | « content/renderer/gpu/input_event_filter.cc ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698