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 "third_party/WebKit/public/platform/WebLayerTreeView.h" | 10 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 virtual bool commitRequested() const; | 50 virtual bool commitRequested() const; |
51 virtual void composite(); | 51 virtual void composite(); |
52 virtual void didStopFlinging(); | 52 virtual void didStopFlinging(); |
53 virtual bool compositeAndReadback(void* pixels, const WebKit::WebRect& rect); | 53 virtual bool compositeAndReadback(void* pixels, const WebKit::WebRect& rect); |
54 virtual void finishAllRendering(); | 54 virtual void finishAllRendering(); |
55 virtual void setDeferCommits(bool defer_commits); | 55 virtual void setDeferCommits(bool defer_commits); |
56 virtual void renderingStats( | 56 virtual void renderingStats( |
57 WebKit::WebRenderingStats& stats) const; // NOLINT(runtime/references) | 57 WebKit::WebRenderingStats& stats) const; // NOLINT(runtime/references) |
58 | 58 |
59 // cc::LayerTreeHostClient implementation. | 59 // cc::LayerTreeHostClient implementation. |
60 virtual void WillBeginMainFrame() OVERRIDE {} | 60 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} |
61 virtual void DidBeginMainFrame() OVERRIDE {} | 61 virtual void DidBeginMainFrame() OVERRIDE {} |
62 virtual void Animate(double frame_begin_time) OVERRIDE {} | 62 virtual void Animate(double frame_begin_time) OVERRIDE {} |
63 virtual void Layout() OVERRIDE; | 63 virtual void Layout() OVERRIDE; |
64 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) | 64 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) |
65 OVERRIDE; | 65 OVERRIDE; |
66 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 66 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
67 OVERRIDE; | 67 OVERRIDE; |
68 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 68 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
69 virtual void WillCommit() OVERRIDE {} | 69 virtual void WillCommit() OVERRIDE {} |
70 virtual void DidCommit() OVERRIDE {} | 70 virtual void DidCommit() OVERRIDE {} |
71 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 71 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
72 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 72 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
73 virtual void ScheduleComposite() OVERRIDE; | 73 virtual void ScheduleComposite() OVERRIDE; |
74 virtual scoped_refptr<cc::ContextProvider> | 74 virtual scoped_refptr<cc::ContextProvider> |
75 OffscreenContextProvider() OVERRIDE; | 75 OffscreenContextProvider() OVERRIDE; |
76 | 76 |
77 private: | 77 private: |
78 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 78 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 80 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace webkit | 83 } // namespace webkit |
84 | 84 |
85 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 85 #endif // CONTENT_TEST_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |