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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 int GetLayerTreeId() const; | 74 int GetLayerTreeId() const; |
75 int GetSourceFrameNumber() const; | 75 int GetSourceFrameNumber() const; |
76 void SetNeedsCommit(); | 76 void SetNeedsCommit(); |
77 void NotifyInputThrottledUntilCommit(); | 77 void NotifyInputThrottledUntilCommit(); |
78 const cc::Layer* GetRootLayer() const; | 78 const cc::Layer* GetRootLayer() const; |
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 | 85 |
85 // WebLayerTreeView implementation. | 86 // WebLayerTreeView implementation. |
86 virtual void setSurfaceReady(); | |
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 setViewportSize( | 89 virtual void setViewportSize( |
90 const blink::WebSize& unused_deprecated, | 90 const blink::WebSize& unused_deprecated, |
91 const blink::WebSize& device_viewport_size); | 91 const blink::WebSize& device_viewport_size); |
92 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 92 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
93 virtual blink::WebSize layoutViewportSize() const; | 93 virtual blink::WebSize layoutViewportSize() const; |
94 virtual blink::WebSize deviceViewportSize() const; | 94 virtual blink::WebSize deviceViewportSize() const; |
95 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( | 95 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( |
96 const blink::WebFloatPoint& point) const; | 96 const blink::WebFloatPoint& point) const; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 base::TimeTicks begin_main_frame_time_; | 184 base::TimeTicks begin_main_frame_time_; |
185 // The time interval between BeginMainFrame calls, provided by the scheduler. | 185 // The time interval between BeginMainFrame calls, provided by the scheduler. |
186 base::TimeDelta begin_main_frame_interval_; | 186 base::TimeDelta begin_main_frame_interval_; |
187 | 187 |
188 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; | 188 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; |
189 }; | 189 }; |
190 | 190 |
191 } // namespace content | 191 } // namespace content |
192 | 192 |
193 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 193 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |