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/browser/renderer_host/render_widget_host_impl.h" | 5 #include "content/browser/renderer_host/render_widget_host_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <tuple> | 10 #include <tuple> |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
547 OnQueueSyntheticGesture) | 547 OnQueueSyntheticGesture) |
548 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, | 548 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCancelComposition, |
549 OnImeCancelComposition) | 549 OnImeCancelComposition) |
550 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) | 550 IPC_MESSAGE_HANDLER(ViewHostMsg_Close, OnClose) |
551 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, | 551 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateScreenRects_ACK, |
552 OnUpdateScreenRectsAck) | 552 OnUpdateScreenRectsAck) |
553 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) | 553 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestMove, OnRequestMove) |
554 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) | 554 IPC_MESSAGE_HANDLER(ViewHostMsg_SetTooltipText, OnSetTooltipText) |
555 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, | 555 IPC_MESSAGE_HANDLER_GENERIC(ViewHostMsg_SwapCompositorFrame, |
556 OnSwapCompositorFrame(msg)) | 556 OnSwapCompositorFrame(msg)) |
557 IPC_MESSAGE_HANDLER(ViewHostMsg_BeginFrameDidNotDraw, | |
558 OnBeginFrameDidNotDraw) | |
brianderson
2017/03/13 22:55:39
Here and elsewhere: Can you call this OnBeginFrame
Eric Seckler
2017/03/14 11:13:41
Done.
| |
557 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) | 559 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateRect, OnUpdateRect) |
558 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) | 560 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) |
559 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, | 561 IPC_MESSAGE_HANDLER(ViewHostMsg_TextInputStateChanged, |
560 OnTextInputStateChanged) | 562 OnTextInputStateChanged) |
561 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) | 563 IPC_MESSAGE_HANDLER(ViewHostMsg_LockMouse, OnLockMouse) |
562 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse) | 564 IPC_MESSAGE_HANDLER(ViewHostMsg_UnlockMouse, OnUnlockMouse) |
563 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup, | 565 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowDisambiguationPopup, |
564 OnShowDisambiguationPopup) | 566 OnShowDisambiguationPopup) |
565 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, | 567 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, |
566 OnSelectionBoundsChanged) | 568 OnSelectionBoundsChanged) |
(...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1856 ++i) { | 1858 ++i) { |
1857 rph->OnMessageReceived(*i); | 1859 rph->OnMessageReceived(*i); |
1858 if (i->dispatch_error()) | 1860 if (i->dispatch_error()) |
1859 rph->OnBadMessageReceived(*i); | 1861 rph->OnBadMessageReceived(*i); |
1860 } | 1862 } |
1861 messages_to_deliver_with_frame.clear(); | 1863 messages_to_deliver_with_frame.clear(); |
1862 | 1864 |
1863 return true; | 1865 return true; |
1864 } | 1866 } |
1865 | 1867 |
1868 void RenderWidgetHostImpl::OnBeginFrameDidNotDraw( | |
1869 const cc::BeginFrameAck& ack) { | |
1870 if (view_) | |
1871 view_->OnBeginFrameDidNotDraw(ack); | |
brianderson
2017/03/13 22:55:39
Since this is conditional, should the state in the
Eric Seckler
2017/03/14 11:13:41
I don't think we can track the lcbfsn in RWHI, sin
| |
1872 } | |
1873 | |
1866 void RenderWidgetHostImpl::OnUpdateRect( | 1874 void RenderWidgetHostImpl::OnUpdateRect( |
1867 const ViewHostMsg_UpdateRect_Params& params) { | 1875 const ViewHostMsg_UpdateRect_Params& params) { |
1868 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); | 1876 TRACE_EVENT0("renderer_host", "RenderWidgetHostImpl::OnUpdateRect"); |
1869 TimeTicks paint_start = TimeTicks::Now(); | 1877 TimeTicks paint_start = TimeTicks::Now(); |
1870 | 1878 |
1871 // Update our knowledge of the RenderWidget's size. | 1879 // Update our knowledge of the RenderWidget's size. |
1872 current_size_ = params.view_size; | 1880 current_size_ = params.view_size; |
1873 | 1881 |
1874 bool is_resize_ack = | 1882 bool is_resize_ack = |
1875 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags); | 1883 ViewHostMsg_UpdateRect_Flags::is_resize_ack(params.flags); |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2514 // different from the receiver's. | 2522 // different from the receiver's. |
2515 file_system_file.url = | 2523 file_system_file.url = |
2516 GURL(storage::GetIsolatedFileSystemRootURIString( | 2524 GURL(storage::GetIsolatedFileSystemRootURIString( |
2517 file_system_url.origin(), filesystem_id, std::string()) | 2525 file_system_url.origin(), filesystem_id, std::string()) |
2518 .append(register_name)); | 2526 .append(register_name)); |
2519 file_system_file.filesystem_id = filesystem_id; | 2527 file_system_file.filesystem_id = filesystem_id; |
2520 } | 2528 } |
2521 } | 2529 } |
2522 | 2530 |
2523 } // namespace content | 2531 } // namespace content |
OLD | NEW |