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