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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 int ScheduleMicroBenchmark( | 79 int ScheduleMicroBenchmark( |
80 const std::string& name, | 80 const std::string& name, |
81 scoped_ptr<base::Value> value, | 81 scoped_ptr<base::Value> value, |
82 const base::Callback<void(scoped_ptr<base::Value>)>& callback); | 82 const base::Callback<void(scoped_ptr<base::Value>)>& callback); |
83 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); | 83 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); |
84 void StartCompositor(); | 84 void StartCompositor(); |
85 | 85 |
86 // WebLayerTreeView implementation. | 86 // WebLayerTreeView implementation. |
87 virtual void setRootLayer(const blink::WebLayer& layer); | 87 virtual void setRootLayer(const blink::WebLayer& layer); |
88 virtual void clearRootLayer(); | 88 virtual void clearRootLayer(); |
| 89 virtual void setCompositorAnimationTimeline( |
| 90 blink::WebCompositorAnimationTimeline* compositor_timeline); |
89 virtual void setViewportSize( | 91 virtual void setViewportSize( |
90 const blink::WebSize& unused_deprecated, | 92 const blink::WebSize& unused_deprecated, |
91 const blink::WebSize& device_viewport_size); | 93 const blink::WebSize& device_viewport_size); |
92 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 94 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
93 virtual blink::WebSize layoutViewportSize() const; | 95 virtual blink::WebSize layoutViewportSize() const; |
94 virtual blink::WebSize deviceViewportSize() const; | 96 virtual blink::WebSize deviceViewportSize() const; |
95 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 97 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
96 const blink::WebFloatPoint& point) const; | 98 const blink::WebFloatPoint& point) const; |
97 virtual void setDeviceScaleFactor(float device_scale); | 99 virtual void setDeviceScaleFactor(float device_scale); |
98 virtual float deviceScaleFactor() const; | 100 virtual float deviceScaleFactor() const; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 183 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
182 | 184 |
183 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; | 185 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; |
184 | 186 |
185 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 187 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
186 }; | 188 }; |
187 | 189 |
188 } // namespace content | 190 } // namespace content |
189 | 191 |
190 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 192 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |