| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <memory> | 5 #include <memory> |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "cc/animation/animation_host.h" | 9 #include "cc/animation/animation_host.h" |
| 10 #include "cc/test/fake_image_serialization_processor.h" | 10 #include "cc/test/fake_image_serialization_processor.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const gfx::Vector2dF& outer_delta, | 51 const gfx::Vector2dF& outer_delta, |
| 52 const gfx::Vector2dF& elastic_overscroll_delta, | 52 const gfx::Vector2dF& elastic_overscroll_delta, |
| 53 float page_scale, | 53 float page_scale, |
| 54 float top_controls_delta) override {} | 54 float top_controls_delta) override {} |
| 55 void RequestNewCompositorFrameSink() override { NOTREACHED(); } | 55 void RequestNewCompositorFrameSink() override { NOTREACHED(); } |
| 56 void DidInitializeCompositorFrameSink() override { NOTREACHED(); } | 56 void DidInitializeCompositorFrameSink() override { NOTREACHED(); } |
| 57 void DidFailToInitializeCompositorFrameSink() override { NOTREACHED(); } | 57 void DidFailToInitializeCompositorFrameSink() override { NOTREACHED(); } |
| 58 void WillCommit() override {} | 58 void WillCommit() override {} |
| 59 void DidCommit() override {} | 59 void DidCommit() override {} |
| 60 void DidCommitAndDrawFrame() override {} | 60 void DidCommitAndDrawFrame() override {} |
| 61 void DidCompleteSwapBuffers() override {} | 61 void DidReceiveCompositorFrameAck() override {} |
| 62 void DidCompletePageScaleAnimation() override {} | 62 void DidCompletePageScaleAnimation() override {} |
| 63 | 63 |
| 64 // RemoteProtoChannel implementation | 64 // RemoteProtoChannel implementation |
| 65 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { | 65 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { |
| 66 receiver_ = receiver; | 66 receiver_ = receiver; |
| 67 } | 67 } |
| 68 void SendCompositorProto(const proto::CompositorMessage& proto) override {} | 68 void SendCompositorProto(const proto::CompositorMessage& proto) override {} |
| 69 | 69 |
| 70 int calls_received_; | 70 int calls_received_; |
| 71 TestTaskGraphRunner task_graph_runner_; | 71 TestTaskGraphRunner task_graph_runner_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 96 begin_frame_state.reset(new BeginMainFrameAndCommitState()); | 96 begin_frame_state.reset(new BeginMainFrameAndCommitState()); |
| 97 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); | 97 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); |
| 98 | 98 |
| 99 static_cast<ProxyMain*>(layer_tree_host_->proxy()) | 99 static_cast<ProxyMain*>(layer_tree_host_->proxy()) |
| 100 ->BeginMainFrame(std::move(begin_frame_state)); | 100 ->BeginMainFrame(std::move(begin_frame_state)); |
| 101 EXPECT_EQ(calls_received_, 1); | 101 EXPECT_EQ(calls_received_, 1); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace | 104 } // namespace |
| 105 } // namespace cc | 105 } // namespace cc |
| OLD | NEW |