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" |
11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" | 11 #include "webkit/compositor_bindings/webkit_compositor_bindings_export.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 class FontAtlas; | |
15 class LayerTreeHost; | 14 class LayerTreeHost; |
16 class Thread; | 15 class Thread; |
17 } | 16 } |
18 | 17 |
19 namespace WebKit { | 18 namespace WebKit { |
20 class WebLayer; | 19 class WebLayer; |
21 class WebLayerTreeViewClient; | 20 class WebLayerTreeViewClient; |
22 class WebLayerTreeViewClientAdapter; | 21 class WebLayerTreeViewClientAdapter; |
23 | 22 |
24 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl
ient { | 23 class WebLayerTreeViewImpl : public WebLayerTreeView, public cc::LayerTreeHostCl
ient { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void layout() OVERRIDE; | 68 virtual void layout() OVERRIDE; |
70 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale)
OVERRIDE; | 69 virtual void applyScrollAndScale(gfx::Vector2d scrollDelta, float pageScale)
OVERRIDE; |
71 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; | 70 virtual scoped_ptr<cc::OutputSurface> createOutputSurface() OVERRIDE; |
72 virtual void didRecreateOutputSurface(bool success) OVERRIDE; | 71 virtual void didRecreateOutputSurface(bool success) OVERRIDE; |
73 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; | 72 virtual scoped_ptr<cc::InputHandler> createInputHandler() OVERRIDE; |
74 virtual void willCommit() OVERRIDE; | 73 virtual void willCommit() OVERRIDE; |
75 virtual void didCommit() OVERRIDE; | 74 virtual void didCommit() OVERRIDE; |
76 virtual void didCommitAndDrawFrame() OVERRIDE; | 75 virtual void didCommitAndDrawFrame() OVERRIDE; |
77 virtual void didCompleteSwapBuffers() OVERRIDE; | 76 virtual void didCompleteSwapBuffers() OVERRIDE; |
78 virtual void scheduleComposite() OVERRIDE; | 77 virtual void scheduleComposite() OVERRIDE; |
79 virtual scoped_ptr<cc::FontAtlas> createFontAtlas(); | |
80 | 78 |
81 private: | 79 private: |
82 WebLayerTreeViewClient* m_client; | 80 WebLayerTreeViewClient* m_client; |
83 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; | 81 scoped_ptr<cc::LayerTreeHost> m_layerTreeHost; |
84 }; | 82 }; |
85 | 83 |
86 } // namespace WebKit | 84 } // namespace WebKit |
87 | 85 |
88 #endif // WebLayerTreeViewImpl_h | 86 #endif // WebLayerTreeViewImpl_h |
OLD | NEW |