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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 int GetLayerTreeId() const; | 68 int GetLayerTreeId() const; |
69 int GetSourceFrameNumber() const; | 69 int GetSourceFrameNumber() const; |
70 void SetNeedsCommit(); | 70 void SetNeedsCommit(); |
71 void NotifyInputThrottledUntilCommit(); | 71 void NotifyInputThrottledUntilCommit(); |
72 const cc::Layer* GetRootLayer() const; | 72 const cc::Layer* GetRootLayer() const; |
73 int ScheduleMicroBenchmark( | 73 int ScheduleMicroBenchmark( |
74 const std::string& name, | 74 const std::string& name, |
75 scoped_ptr<base::Value> value, | 75 scoped_ptr<base::Value> value, |
76 const base::Callback<void(scoped_ptr<base::Value>)>& callback); | 76 const base::Callback<void(scoped_ptr<base::Value>)>& callback); |
77 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); | 77 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); |
| 78 void Shutdown(); |
78 | 79 |
79 // WebLayerTreeView implementation. | 80 // WebLayerTreeView implementation. |
80 virtual void setSurfaceReady(); | 81 virtual void setSurfaceReady(); |
81 virtual void setRootLayer(const blink::WebLayer& layer); | 82 virtual void setRootLayer(const blink::WebLayer& layer); |
82 virtual void clearRootLayer(); | 83 virtual void clearRootLayer(); |
83 virtual void setViewportSize( | 84 virtual void setViewportSize( |
84 const blink::WebSize& unused_deprecated, | 85 const blink::WebSize& unused_deprecated, |
85 const blink::WebSize& device_viewport_size); | 86 const blink::WebSize& device_viewport_size); |
86 virtual void setViewportSize(const blink::WebSize& device_viewport_size); | 87 virtual void setViewportSize(const blink::WebSize& device_viewport_size); |
87 virtual blink::WebSize layoutViewportSize() const; | 88 virtual blink::WebSize layoutViewportSize() const; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 void Initialize(cc::LayerTreeSettings settings); | 152 void Initialize(cc::LayerTreeSettings settings); |
152 | 153 |
153 bool threaded_; | 154 bool threaded_; |
154 RenderWidget* widget_; | 155 RenderWidget* widget_; |
155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 156 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
156 }; | 157 }; |
157 | 158 |
158 } // namespace content | 159 } // namespace content |
159 | 160 |
160 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 161 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |