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 "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void SetNeedsUpdateLayers(); | 70 void SetNeedsUpdateLayers(); |
71 void SetNeedsCommit(); | 71 void SetNeedsCommit(); |
72 void NotifyInputThrottledUntilCommit(); | 72 void NotifyInputThrottledUntilCommit(); |
73 const cc::Layer* GetRootLayer() const; | 73 const cc::Layer* GetRootLayer() const; |
74 int ScheduleMicroBenchmark( | 74 int ScheduleMicroBenchmark( |
75 const std::string& name, | 75 const std::string& name, |
76 scoped_ptr<base::Value> value, | 76 scoped_ptr<base::Value> value, |
77 const base::Callback<void(scoped_ptr<base::Value>)>& callback); | 77 const base::Callback<void(scoped_ptr<base::Value>)>& callback); |
78 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); | 78 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); |
79 void StartCompositor(); | 79 void StartCompositor(); |
| 80 void SetSurfaceIdNamespace(uint32_t surface_id_namespace); |
80 | 81 |
81 // WebLayerTreeView implementation. | 82 // WebLayerTreeView implementation. |
82 virtual void setRootLayer(const blink::WebLayer& layer); | 83 virtual void setRootLayer(const blink::WebLayer& layer); |
83 virtual void clearRootLayer(); | 84 virtual void clearRootLayer(); |
84 virtual void setViewportSize( | 85 virtual void setViewportSize( |
85 const blink::WebSize& unused_deprecated, | 86 const blink::WebSize& unused_deprecated, |
86 const blink::WebSize& device_viewport_size); | 87 const blink::WebSize& device_viewport_size); |
87 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 88 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
88 virtual blink::WebSize layoutViewportSize() const; | 89 virtual blink::WebSize layoutViewportSize() const; |
89 virtual blink::WebSize deviceViewportSize() const; | 90 virtual blink::WebSize deviceViewportSize() const; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 180 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
180 | 181 |
181 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 182 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
182 | 183 |
183 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 184 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
184 }; | 185 }; |
185 | 186 |
186 } // namespace content | 187 } // namespace content |
187 | 188 |
188 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 189 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |