| 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 WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 5 #ifndef WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| 6 #define WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 6 #define WEBKIT_SUPPORT_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WillBeginFrame() OVERRIDE {} | 60 virtual void WillBeginFrame() OVERRIDE {} |
| 61 virtual void DidBeginFrame() OVERRIDE {} | 61 virtual void DidBeginFrame() 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() OVERRIDE; | 66 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 67 OVERRIDE; |
| 67 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} | 68 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} |
| 68 virtual void WillCommit() OVERRIDE {} | 69 virtual void WillCommit() OVERRIDE {} |
| 69 virtual void DidCommit() OVERRIDE {} | 70 virtual void DidCommit() OVERRIDE {} |
| 70 virtual void DidCommitAndDrawFrame() OVERRIDE {} | 71 virtual void DidCommitAndDrawFrame() OVERRIDE {} |
| 71 virtual void DidCompleteSwapBuffers() OVERRIDE {} | 72 virtual void DidCompleteSwapBuffers() OVERRIDE {} |
| 72 virtual void ScheduleComposite() OVERRIDE; | 73 virtual void ScheduleComposite() OVERRIDE; |
| 73 virtual scoped_refptr<cc::ContextProvider> | 74 virtual scoped_refptr<cc::ContextProvider> |
| 74 OffscreenContextProviderForMainThread() OVERRIDE; | 75 OffscreenContextProviderForMainThread() OVERRIDE; |
| 75 virtual scoped_refptr<cc::ContextProvider> | 76 virtual scoped_refptr<cc::ContextProvider> |
| 76 OffscreenContextProviderForCompositorThread() OVERRIDE; | 77 OffscreenContextProviderForCompositorThread() OVERRIDE; |
| 77 | 78 |
| 78 private: | 79 private: |
| 79 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 80 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); | 82 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace webkit | 85 } // namespace webkit |
| 85 | 86 |
| 86 #endif // WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 87 #endif // WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
| OLD | NEW |