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_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 5 #ifndef WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
6 #define WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 6 #define WEBKIT_COMPOSITOR_BINDINGS_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/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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 virtual void scheduleComposite() OVERRIDE; | 84 virtual void scheduleComposite() OVERRIDE; |
85 virtual scoped_refptr<cc::ContextProvider> | 85 virtual scoped_refptr<cc::ContextProvider> |
86 OffscreenContextProviderForMainThread() OVERRIDE; | 86 OffscreenContextProviderForMainThread() OVERRIDE; |
87 virtual scoped_refptr<cc::ContextProvider> | 87 virtual scoped_refptr<cc::ContextProvider> |
88 OffscreenContextProviderForCompositorThread() OVERRIDE; | 88 OffscreenContextProviderForCompositorThread() OVERRIDE; |
89 | 89 |
90 private: | 90 private: |
91 RenderingType type_; | 91 RenderingType type_; |
92 WebKit::WebLayerTreeViewClient* client_; | 92 WebKit::WebLayerTreeViewClient* client_; |
93 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 93 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
94 | |
95 class MainThreadContextProvider; | |
96 scoped_refptr<MainThreadContextProvider> contexts_main_thread_; | |
97 class CompositorThreadContextProvider; | |
98 scoped_refptr<CompositorThreadContextProvider> contexts_compositor_thread_; | |
99 }; | 94 }; |
100 | 95 |
101 } // namespace Web_kit | 96 } // namespace Web_kit |
102 | 97 |
103 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ | 98 #endif // WEBKIT_COMPOSITOR_BINDINGS_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ |
OLD | NEW |