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/trees/layer_tree_host_client.h" | 9 #include "cc/trees/layer_tree_host_client.h" |
10 #include "cc/trees/layer_tree_host_single_thread_client.h" | 10 #include "cc/trees/layer_tree_host_single_thread_client.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 virtual void finishAllRendering(); | 56 virtual void finishAllRendering(); |
57 virtual void setDeferCommits(bool defer_commits); | 57 virtual void setDeferCommits(bool defer_commits); |
58 virtual void renderingStats( | 58 virtual void renderingStats( |
59 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references) | 59 blink::WebRenderingStats& stats) const; // NOLINT(runtime/references) |
60 | 60 |
61 // cc::LayerTreeHostClient implementation. | 61 // cc::LayerTreeHostClient implementation. |
62 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} | 62 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
63 virtual void DidBeginMainFrame() OVERRIDE {} | 63 virtual void DidBeginMainFrame() OVERRIDE {} |
64 virtual void Animate(double frame_begin_time) OVERRIDE {} | 64 virtual void Animate(double frame_begin_time) OVERRIDE {} |
65 virtual void Layout() OVERRIDE; | 65 virtual void Layout() OVERRIDE; |
66 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) | 66 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, |
| 67 float page_scale) |
67 OVERRIDE; | 68 OVERRIDE; |
68 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 69 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
69 OVERRIDE; | 70 OVERRIDE; |
70 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 71 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
71 virtual void WillCommit() OVERRIDE {} | 72 virtual void WillCommit() OVERRIDE {} |
72 virtual void DidCommit() OVERRIDE {} | 73 virtual void DidCommit() OVERRIDE {} |
73 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 74 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
74 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 75 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
75 virtual scoped_refptr<cc::ContextProvider> | 76 virtual scoped_refptr<cc::ContextProvider> |
76 OffscreenContextProvider() OVERRIDE; | 77 OffscreenContextProvider() OVERRIDE; |
77 | 78 |
78 // cc::LayerTreeHostSingleThreadClient implementation. | 79 // cc::LayerTreeHostSingleThreadClient implementation. |
79 virtual void ScheduleComposite() OVERRIDE {} | 80 virtual void ScheduleComposite() OVERRIDE {} |
80 virtual void ScheduleAnimation() OVERRIDE {} | 81 virtual void ScheduleAnimation() OVERRIDE {} |
81 virtual void DidPostSwapBuffers() OVERRIDE {} | 82 virtual void DidPostSwapBuffers() OVERRIDE {} |
82 virtual void DidAbortSwapBuffers() OVERRIDE {} | 83 virtual void DidAbortSwapBuffers() OVERRIDE {} |
83 | 84 |
84 private: | 85 private: |
85 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 86 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 88 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace webkit | 91 } // namespace webkit |
91 | 92 |
92 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 93 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |