OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
7 | 7 |
8 #include "cc/layer_tree_host_client.h" | 8 #include "cc/layer_tree_host_client.h" |
9 #include "cc/layer_tree_settings.h" | 9 #include "cc/layer_tree_settings.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeView.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 RenderWidgetCompositor(RenderWidget* widget, | 94 RenderWidgetCompositor(RenderWidget* widget, |
95 WebKit::WebLayerTreeViewClient* client); | 95 WebKit::WebLayerTreeViewClient* client); |
96 | 96 |
97 bool initialize(cc::LayerTreeSettings settings); | 97 bool initialize(cc::LayerTreeSettings settings); |
98 | 98 |
99 bool threaded_; | 99 bool threaded_; |
100 bool suppress_schedule_composite_; | 100 bool suppress_schedule_composite_; |
101 RenderWidget* widget_; | 101 RenderWidget* widget_; |
102 WebKit::WebLayerTreeViewClient* client_; | 102 WebKit::WebLayerTreeViewClient* client_; |
103 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 103 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
104 | |
105 class MainThreadContextProvider; | |
106 scoped_refptr<MainThreadContextProvider> contexts_main_thread_; | |
107 class CompositorThreadContextProvider; | |
108 scoped_refptr<CompositorThreadContextProvider> contexts_compositor_thread_; | |
109 }; | 104 }; |
110 | 105 |
111 } // namespace content | 106 } // namespace content |
112 | 107 |
113 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 108 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
114 | 109 |
OLD | NEW |