| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void WillBeginMainFrame() override {} | 44 void WillBeginMainFrame() override {} |
| 45 void BeginMainFrame(const BeginFrameArgs& args) override {} | 45 void BeginMainFrame(const BeginFrameArgs& args) override {} |
| 46 void BeginMainFrameNotExpectedSoon() override {} | 46 void BeginMainFrameNotExpectedSoon() override {} |
| 47 void DidBeginMainFrame() override {} | 47 void DidBeginMainFrame() override {} |
| 48 void UpdateLayerTreeHost() override {} | 48 void UpdateLayerTreeHost() override {} |
| 49 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 49 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 50 const gfx::Vector2dF& outer_delta, | 50 const gfx::Vector2dF& outer_delta, |
| 51 const gfx::Vector2dF& elastic_overscroll_delta, | 51 const gfx::Vector2dF& elastic_overscroll_delta, |
| 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 RequestNewCompositorFrameSink() override { NOTREACHED(); } |
| 55 void DidInitializeOutputSurface() override { NOTREACHED(); } | 55 void DidInitializeCompositorFrameSink() override { NOTREACHED(); } |
| 56 void DidFailToInitializeOutputSurface() override { NOTREACHED(); } | 56 void DidFailToInitializeCompositorFrameSink() 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 | 62 |
| 63 // RemoteProtoChannel implementation | 63 // RemoteProtoChannel implementation |
| 64 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { | 64 void SetProtoReceiver(RemoteProtoChannel::ProtoReceiver* receiver) override { |
| 65 receiver_ = receiver; | 65 receiver_ = receiver; |
| 66 } | 66 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 97 | 97 |
| 98 LayerTreeHost* layer_tree_host = | 98 LayerTreeHost* layer_tree_host = |
| 99 static_cast<LayerTreeHost*>(layer_tree_host_.get()); | 99 static_cast<LayerTreeHost*>(layer_tree_host_.get()); |
| 100 static_cast<ProxyMain*>(layer_tree_host->proxy()) | 100 static_cast<ProxyMain*>(layer_tree_host->proxy()) |
| 101 ->BeginMainFrame(std::move(begin_frame_state)); | 101 ->BeginMainFrame(std::move(begin_frame_state)); |
| 102 EXPECT_EQ(calls_received_, 1); | 102 EXPECT_EQ(calls_received_, 1); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace | 105 } // namespace |
| 106 } // namespace cc | 106 } // namespace cc |
| OLD | NEW |