OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1027 | 1027 |
1028 if (!next_paint_flags_ && !plugin_window_moves_.size()) | 1028 if (!next_paint_flags_ && !plugin_window_moves_.size()) |
1029 return; | 1029 return; |
1030 | 1030 |
1031 ViewHostMsg_UpdateRect_Params params; | 1031 ViewHostMsg_UpdateRect_Params params; |
1032 params.view_size = size_; | 1032 params.view_size = size_; |
1033 params.resizer_rect = resizer_rect_; | 1033 params.resizer_rect = resizer_rect_; |
1034 params.plugin_window_moves.swap(plugin_window_moves_); | 1034 params.plugin_window_moves.swap(plugin_window_moves_); |
1035 params.flags = next_paint_flags_; | 1035 params.flags = next_paint_flags_; |
1036 params.scroll_offset = GetScrollOffset(); | 1036 params.scroll_offset = GetScrollOffset(); |
1037 update_reply_pending_ = true; | 1037 params.needs_ack = false; |
nduca
2011/12/13 16:51:26
Whomp. LGTM fwiw.
| |
1038 | 1038 |
1039 Send(new ViewHostMsg_UpdateRect(routing_id_, params)); | 1039 Send(new ViewHostMsg_UpdateRect(routing_id_, params)); |
1040 next_paint_flags_ = 0; | 1040 next_paint_flags_ = 0; |
1041 } | 1041 } |
1042 | 1042 |
1043 void RenderWidget::scheduleComposite() { | 1043 void RenderWidget::scheduleComposite() { |
1044 if (WebWidgetHandlesCompositorScheduling()) | 1044 if (WebWidgetHandlesCompositorScheduling()) |
1045 webwidget_->composite(false); | 1045 webwidget_->composite(false); |
1046 else { | 1046 else { |
1047 // TODO(nduca): replace with something a little less hacky. The reason this | 1047 // TODO(nduca): replace with something a little less hacky. The reason this |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1543 } | 1543 } |
1544 } | 1544 } |
1545 | 1545 |
1546 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { | 1546 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { |
1547 return false; | 1547 return false; |
1548 } | 1548 } |
1549 | 1549 |
1550 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { | 1550 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { |
1551 return false; | 1551 return false; |
1552 } | 1552 } |
OLD | NEW |