| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // LatencyInfoSwapPromiseMonitor. During the life time of the | 61 // LatencyInfoSwapPromiseMonitor. During the life time of the |
| 62 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() | 62 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() |
| 63 // is called on LayerTreeHost, the original latency info will be turned | 63 // is called on LayerTreeHost, the original latency info will be turned |
| 64 // into a LatencyInfoSwapPromise. | 64 // into a LatencyInfoSwapPromise. |
| 65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
| 66 ui::LatencyInfo* latency); | 66 ui::LatencyInfo* latency); |
| 67 // Calling QueueSwapPromise() to directly queue a SwapPromise into | 67 // Calling QueueSwapPromise() to directly queue a SwapPromise into |
| 68 // LayerTreeHost. | 68 // LayerTreeHost. |
| 69 void QueueSwapPromise(scoped_ptr<cc::SwapPromise> swap_promise); | 69 void QueueSwapPromise(scoped_ptr<cc::SwapPromise> swap_promise); |
| 70 int GetLayerTreeId() const; | 70 int GetLayerTreeId() const; |
| 71 int GetSourceFrameNumber() const; |
| 72 void SetNeedsCommit(); |
| 71 void NotifyInputThrottledUntilCommit(); | 73 void NotifyInputThrottledUntilCommit(); |
| 72 const cc::Layer* GetRootLayer() const; | 74 const cc::Layer* GetRootLayer() const; |
| 73 int ScheduleMicroBenchmark( | 75 int ScheduleMicroBenchmark( |
| 74 const std::string& name, | 76 const std::string& name, |
| 75 scoped_ptr<base::Value> value, | 77 scoped_ptr<base::Value> value, |
| 76 const base::Callback<void(scoped_ptr<base::Value>)>& callback); | 78 const base::Callback<void(scoped_ptr<base::Value>)>& callback); |
| 77 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); | 79 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); |
| 78 | 80 |
| 79 // WebLayerTreeView implementation. | 81 // WebLayerTreeView implementation. |
| 80 virtual void setSurfaceReady(); | 82 virtual void setSurfaceReady(); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 | 152 |
| 151 bool threaded_; | 153 bool threaded_; |
| 152 bool suppress_schedule_composite_; | 154 bool suppress_schedule_composite_; |
| 153 RenderWidget* widget_; | 155 RenderWidget* widget_; |
| 154 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 156 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 155 }; | 157 }; |
| 156 | 158 |
| 157 } // namespace content | 159 } // namespace content |
| 158 | 160 |
| 159 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 161 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |