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/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "cc/test/fake_image_serialization_processor.h" | 9 #include "cc/test/fake_image_serialization_processor.h" |
10 #include "cc/test/test_task_graph_runner.h" | 10 #include "cc/test/test_task_graph_runner.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 const gfx::Vector2dF& elastic_overscroll_delta, | 48 const gfx::Vector2dF& elastic_overscroll_delta, |
49 float page_scale, | 49 float page_scale, |
50 float top_controls_delta) override {} | 50 float top_controls_delta) override {} |
51 void RequestNewOutputSurface() override { NOTREACHED(); } | 51 void RequestNewOutputSurface() override { NOTREACHED(); } |
52 void DidInitializeOutputSurface() override { NOTREACHED(); } | 52 void DidInitializeOutputSurface() override { NOTREACHED(); } |
53 void DidFailToInitializeOutputSurface() override { NOTREACHED(); } | 53 void DidFailToInitializeOutputSurface() override { NOTREACHED(); } |
54 void WillCommit() override {} | 54 void WillCommit() override {} |
55 void DidCommit() override {} | 55 void DidCommit() override {} |
56 void DidCommitAndDrawFrame() override {} | 56 void DidCommitAndDrawFrame() override {} |
57 void DidCompleteSwapBuffers() override {} | 57 void DidCompleteSwapBuffers() override {} |
58 void RecordFrameTimingEvents( | |
59 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, | |
60 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) | |
61 override{}; | |
62 void DidCompletePageScaleAnimation() override {} | 58 void DidCompletePageScaleAnimation() override {} |
63 void SendBeginFramesToChildren(const BeginFrameArgs& args) override {} | 59 void SendBeginFramesToChildren(const BeginFrameArgs& args) override {} |
64 | 60 |
65 // RemoteProtoChannel implementation | 61 // RemoteProtoChannel implementation |
66 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { | 62 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { |
67 receiver_ = receiver; | 63 receiver_ = receiver; |
68 } | 64 } |
69 void SendCompositorProto(const proto::CompositorMessage& proto) override {} | 65 void SendCompositorProto(const proto::CompositorMessage& proto) override {} |
70 | 66 |
71 int calls_received_; | 67 int calls_received_; |
(...skipping 25 matching lines...) Expand all Loading... |
97 begin_frame_state.reset(new BeginMainFrameAndCommitState()); | 93 begin_frame_state.reset(new BeginMainFrameAndCommitState()); |
98 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); | 94 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); |
99 | 95 |
100 static_cast<ProxyMain*>(layer_tree_host_->proxy()) | 96 static_cast<ProxyMain*>(layer_tree_host_->proxy()) |
101 ->BeginMainFrame(std::move(begin_frame_state)); | 97 ->BeginMainFrame(std::move(begin_frame_state)); |
102 EXPECT_EQ(calls_received_, 1); | 98 EXPECT_EQ(calls_received_, 1); |
103 } | 99 } |
104 | 100 |
105 } // namespace | 101 } // namespace |
106 } // namespace cc | 102 } // namespace cc |
OLD | NEW |