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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 virtual void DidAbortSwapBuffers() OVERRIDE; | 146 virtual void DidAbortSwapBuffers() OVERRIDE; |
147 | 147 |
148 private: | 148 private: |
149 RenderWidgetCompositor(RenderWidget* widget, bool threaded); | 149 RenderWidgetCompositor(RenderWidget* widget, bool threaded); |
150 | 150 |
151 void Initialize(cc::LayerTreeSettings settings); | 151 void Initialize(cc::LayerTreeSettings settings); |
152 | 152 |
153 bool threaded_; | 153 bool threaded_; |
154 RenderWidget* widget_; | 154 RenderWidget* widget_; |
155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 156 |
| 157 bool send_v8_idle_notification_after_commit_; |
| 158 base::TimeTicks begin_main_frame_time_; |
| 159 // The time interval between BeginMainFrame calls, provided by the scheduler. |
| 160 base::TimeDelta begin_main_frame_interval_; |
156 }; | 161 }; |
157 | 162 |
158 } // namespace content | 163 } // namespace content |
159 | 164 |
160 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 165 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
OLD | NEW |