| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 WebLayerTreeViewImpl_h | 5 #ifndef WebLayerTreeViewImpl_h |
| 6 #define WebLayerTreeViewImpl_h | 6 #define WebLayerTreeViewImpl_h |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/layer_tree_host_client.h" | 9 #include "cc/layer_tree_host_client.h" |
| 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; | 53 virtual void renderingStats(WebRenderingStats&) const OVERRIDE; |
| 54 virtual void setShowFPSCounter(bool show); | 54 virtual void setShowFPSCounter(bool show); |
| 55 virtual void loseCompositorContext(int numTimes) OVERRIDE; | 55 virtual void loseCompositorContext(int numTimes) OVERRIDE; |
| 56 | 56 |
| 57 // cc::LayerTreeHostClient implementation. | 57 // cc::LayerTreeHostClient implementation. |
| 58 virtual void willBeginFrame() OVERRIDE; | 58 virtual void willBeginFrame() OVERRIDE; |
| 59 virtual void didBeginFrame() OVERRIDE; | 59 virtual void didBeginFrame() OVERRIDE; |
| 60 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; | 60 virtual void animate(double monotonicFrameBeginTime) OVERRIDE; |
| 61 virtual void layout() OVERRIDE; | 61 virtual void layout() OVERRIDE; |
| 62 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale)
OVERRIDE; | 62 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale)
OVERRIDE; |
| 63 virtual scoped_ptr<WebCompositorOutputSurface> createOutputSurface() OVERRID
E; | 63 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; |
| 64 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 64 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
| 65 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 65 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
| 66 virtual void willCommit() OVERRIDE; | 66 virtual void willCommit() OVERRIDE; |
| 67 virtual void didCommit() OVERRIDE; | 67 virtual void didCommit() OVERRIDE; |
| 68 virtual void didCommitAndDrawFrame() OVERRIDE; | 68 virtual void didCommitAndDrawFrame() OVERRIDE; |
| 69 virtual void didCompleteSwapBuffers() OVERRIDE; | 69 virtual void didCompleteSwapBuffers() OVERRIDE; |
| 70 virtual void scheduleComposite() OVERRIDE; | 70 virtual void scheduleComposite() OVERRIDE; |
| 71 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); | 71 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 WebLayerTreeViewClient* m_client; | 74 WebLayerTreeViewClient* m_client; |
| 75 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; | 75 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace WebKit | 78 } // namespace WebKit |
| 79 | 79 |
| 80 #endif // WebLayerTreeViewImpl_h | 80 #endif // WebLayerTreeViewImpl_h |
| OLD | NEW |