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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 DidCompletePageScaleAnimation() override {} | 58 void DidCompletePageScaleAnimation() override {} |
| 59 void ReportFixedRasterScaleUseCounters( |
| 60 bool has_blurry_content, |
| 61 bool has_potential_performance_regression) override {} |
59 | 62 |
60 // RemoteProtoChannel implementation | 63 // RemoteProtoChannel implementation |
61 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { | 64 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { |
62 receiver_ = receiver; | 65 receiver_ = receiver; |
63 } | 66 } |
64 void SendCompositorProto(const proto::CompositorMessage& proto) override {} | 67 void SendCompositorProto(const proto::CompositorMessage& proto) override {} |
65 | 68 |
66 int calls_received_; | 69 int calls_received_; |
67 TestTaskGraphRunner task_graph_runner_; | 70 TestTaskGraphRunner task_graph_runner_; |
68 LayerTreeSettings settings_; | 71 LayerTreeSettings settings_; |
(...skipping 23 matching lines...) Expand all Loading... |
92 begin_frame_state.reset(new BeginMainFrameAndCommitState()); | 95 begin_frame_state.reset(new BeginMainFrameAndCommitState()); |
93 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); | 96 begin_frame_state->scroll_info.reset(new ScrollAndScaleSet()); |
94 | 97 |
95 static_cast<ProxyMain*>(layer_tree_host_->proxy()) | 98 static_cast<ProxyMain*>(layer_tree_host_->proxy()) |
96 ->BeginMainFrame(std::move(begin_frame_state)); | 99 ->BeginMainFrame(std::move(begin_frame_state)); |
97 EXPECT_EQ(calls_received_, 1); | 100 EXPECT_EQ(calls_received_, 1); |
98 } | 101 } |
99 | 102 |
100 } // namespace | 103 } // namespace |
101 } // namespace cc | 104 } // namespace cc |
OLD | NEW |