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

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: jar feedback 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
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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff"); 482 TRACE_EVENT0("renderer", "EarlyOut_AcceleratedCompositingOff");
483 return; 483 return;
484 } 484 }
485 485
486 // Continue painting if necessary... 486 // Continue painting if necessary...
487 DoDeferredUpdateAndSendInputAck(); 487 DoDeferredUpdateAndSendInputAck();
488 } 488 }
489 489
490 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) { 490 void RenderWidget::OnHandleInputEvent(const IPC::Message& message) {
491 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent"); 491 TRACE_EVENT0("renderer", "RenderWidget::OnHandleInputEvent");
492 void* iter = NULL; 492 PickleReader iter(message);
493 493
494 const char* data; 494 const char* data;
495 int data_length; 495 int data_length;
496 handling_input_event_ = true; 496 handling_input_event_ = true;
497 if (!message.ReadData(&iter, &data, &data_length)) { 497 if (!message.ReadData(&iter, &data, &data_length)) {
498 handling_input_event_ = false; 498 handling_input_event_ = false;
499 return; 499 return;
500 } 500 }
501 501
502 const WebInputEvent* input_event = 502 const WebInputEvent* input_event =
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1652 } 1652 }
1653 } 1653 }
1654 1654
1655 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1655 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1656 return false; 1656 return false;
1657 } 1657 }
1658 1658
1659 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1659 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1660 return false; 1660 return false;
1661 } 1661 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698