| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 5 #ifndef CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 6 #define CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/test/test_task_graph_runner.h" | 9 #include "cc/test/test_task_graph_runner.h" |
| 10 #include "cc/trees/layer_tree_host_client.h" | 10 #include "cc/trees/layer_tree_host_client.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void WillBeginMainFrame() override {} | 71 void WillBeginMainFrame() override {} |
| 72 void DidBeginMainFrame() override {} | 72 void DidBeginMainFrame() override {} |
| 73 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} | 73 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} |
| 74 void BeginMainFrameNotExpectedSoon() override {} | 74 void BeginMainFrameNotExpectedSoon() override {} |
| 75 void UpdateLayerTreeHost() override; | 75 void UpdateLayerTreeHost() override; |
| 76 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 76 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 77 const gfx::Vector2dF& outer_delta, | 77 const gfx::Vector2dF& outer_delta, |
| 78 const gfx::Vector2dF& elastic_overscroll_delta, | 78 const gfx::Vector2dF& elastic_overscroll_delta, |
| 79 float page_scale, | 79 float page_scale, |
| 80 float top_controls_delta) override; | 80 float top_controls_delta) override; |
| 81 void ApplyMutations(const cc::LayerTreeMutationMap& mutations) override {} |
| 81 void RequestNewOutputSurface() override; | 82 void RequestNewOutputSurface() override; |
| 82 void DidInitializeOutputSurface() override {} | 83 void DidInitializeOutputSurface() override {} |
| 83 void DidFailToInitializeOutputSurface() override; | 84 void DidFailToInitializeOutputSurface() override; |
| 84 void WillCommit() override {} | 85 void WillCommit() override {} |
| 85 void DidCommit() override {} | 86 void DidCommit() override {} |
| 86 void DidCommitAndDrawFrame() override {} | 87 void DidCommitAndDrawFrame() override {} |
| 87 void DidCompleteSwapBuffers() override {} | 88 void DidCompleteSwapBuffers() override {} |
| 88 void DidCompletePageScaleAnimation() override {} | 89 void DidCompletePageScaleAnimation() override {} |
| 89 void RecordFrameTimingEvents( | 90 void RecordFrameTimingEvents( |
| 90 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, | 91 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
| 91 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) | 92 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
| 92 override {} | 93 override {} |
| 93 | 94 |
| 94 // cc::LayerTreeHostSingleThreadClient implementation. | 95 // cc::LayerTreeHostSingleThreadClient implementation. |
| 95 void DidPostSwapBuffers() override {} | 96 void DidPostSwapBuffers() override {} |
| 96 void DidAbortSwapBuffers() override {} | 97 void DidAbortSwapBuffers() override {} |
| 97 | 98 |
| 98 private: | 99 private: |
| 99 cc::TestTaskGraphRunner task_graph_runner_; | 100 cc::TestTaskGraphRunner task_graph_runner_; |
| 100 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 101 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 103 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace content | 106 } // namespace content |
| 106 | 107 |
| 107 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 108 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |