OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gpu/compositor_external_begin_frame_source.h" | 5 #include "content/renderer/gpu/compositor_external_begin_frame_source.h" |
6 | 6 |
7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
8 #include "ipc/ipc_sync_channel.h" | 8 #include "ipc/ipc_sync_channel.h" |
9 #include "ipc/ipc_sync_message_filter.h" | 9 #include "ipc/ipc_sync_message_filter.h" |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 routing_id_, | 50 routing_id_, |
51 begin_frame_source_filter_handler_); | 51 begin_frame_source_filter_handler_); |
52 } | 52 } |
53 | 53 |
54 void CompositorExternalBeginFrameSource::OnMessageReceived( | 54 void CompositorExternalBeginFrameSource::OnMessageReceived( |
55 const IPC::Message& message) { | 55 const IPC::Message& message) { |
56 DCHECK(CalledOnValidThread()); | 56 DCHECK(CalledOnValidThread()); |
57 DCHECK(begin_frame_source_proxy_.get()); | 57 DCHECK(begin_frame_source_proxy_.get()); |
58 IPC_BEGIN_MESSAGE_MAP(CompositorExternalBeginFrameSource, message) | 58 IPC_BEGIN_MESSAGE_MAP(CompositorExternalBeginFrameSource, message) |
59 IPC_MESSAGE_HANDLER(ViewMsg_BeginFrame, OnBeginFrame) | 59 IPC_MESSAGE_HANDLER(ViewMsg_BeginFrame, OnBeginFrame) |
60 IPC_END_MESSAGE_MAP(); | 60 IPC_END_MESSAGE_MAP() |
61 } | 61 } |
62 | 62 |
63 void CompositorExternalBeginFrameSource::OnBeginFrame( | 63 void CompositorExternalBeginFrameSource::OnBeginFrame( |
64 const cc::BeginFrameArgs& args) { | 64 const cc::BeginFrameArgs& args) { |
65 DCHECK(CalledOnValidThread()); | 65 DCHECK(CalledOnValidThread()); |
66 CallOnBeginFrame(args); | 66 CallOnBeginFrame(args); |
67 } | 67 } |
68 | 68 |
69 bool CompositorExternalBeginFrameSource::Send(IPC::Message* message) { | 69 bool CompositorExternalBeginFrameSource::Send(IPC::Message* message) { |
70 return message_sender_->Send(message); | 70 return message_sender_->Send(message); |
71 } | 71 } |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
OLD | NEW |