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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 float page_scale, | 52 float page_scale, |
53 float top_controls_delta) override {} | 53 float top_controls_delta) override {} |
54 void RequestNewOutputSurface() override { NOTREACHED(); } | 54 void RequestNewOutputSurface() override { NOTREACHED(); } |
55 void DidInitializeOutputSurface() override { NOTREACHED(); } | 55 void DidInitializeOutputSurface() override { NOTREACHED(); } |
56 void DidFailToInitializeOutputSurface() override { NOTREACHED(); } | 56 void DidFailToInitializeOutputSurface() override { NOTREACHED(); } |
57 void WillCommit() override {} | 57 void WillCommit() override {} |
58 void DidCommit() override {} | 58 void DidCommit() override {} |
59 void DidCommitAndDrawFrame() override {} | 59 void DidCommitAndDrawFrame() override {} |
60 void DidCompleteSwapBuffers() override {} | 60 void DidCompleteSwapBuffers() override {} |
61 void DidCompletePageScaleAnimation() override {} | 61 void DidCompletePageScaleAnimation() override {} |
62 void ReportFixedRasterScaleUseCounters( | |
63 bool has_blurry_content, | |
64 bool has_potential_performance_regression) override {} | |
65 | 62 |
66 // RemoteProtoChannel implementation | 63 // RemoteProtoChannel implementation |
67 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { | 64 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { |
68 receiver_ = receiver; | 65 receiver_ = receiver; |
69 } | 66 } |
70 void SendCompositorProto(const proto::CompositorMessage& proto) override {} | 67 void SendCompositorProto(const proto::CompositorMessage& proto) override {} |
71 | 68 |
72 int calls_received_; | 69 int calls_received_; |
73 TestTaskGraphRunner task_graph_runner_; | 70 TestTaskGraphRunner task_graph_runner_; |
74 LayerTreeSettings settings_; | 71 LayerTreeSettings settings_; |
(...skipping 23 matching lines...) Expand all Loading... |
98 begin_frame_state.reset(new BeginMainFrameAndCommitState()); | 95 begin_frame_state.reset(new BeginMainFrameAndCommitState()); |
99 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); | 96 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); |
100 | 97 |
101 static_cast<ProxyMain*>(layer_tree_host_->proxy()) | 98 static_cast<ProxyMain*>(layer_tree_host_->proxy()) |
102 ->BeginMainFrame(std::move(begin_frame_state)); | 99 ->BeginMainFrame(std::move(begin_frame_state)); |
103 EXPECT_EQ(calls_received_, 1); | 100 EXPECT_EQ(calls_received_, 1); |
104 } | 101 } |
105 | 102 |
106 } // namespace | 103 } // namespace |
107 } // namespace cc | 104 } // namespace cc |
OLD | NEW |