| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // cc::LayerTreeHostSingleThreadClient implementation. | 138 // cc::LayerTreeHostSingleThreadClient implementation. |
| 139 virtual void ScheduleComposite() OVERRIDE; | 139 virtual void ScheduleComposite() OVERRIDE; |
| 140 virtual void ScheduleAnimation() OVERRIDE; | 140 virtual void ScheduleAnimation() OVERRIDE; |
| 141 virtual void DidPostSwapBuffers() OVERRIDE; | 141 virtual void DidPostSwapBuffers() OVERRIDE; |
| 142 virtual void DidAbortSwapBuffers() OVERRIDE; | 142 virtual void DidAbortSwapBuffers() OVERRIDE; |
| 143 | 143 |
| 144 private: | 144 private: |
| 145 RenderWidgetCompositor(RenderWidget* widget, bool threaded); | 145 RenderWidgetCompositor(RenderWidget* widget, bool threaded); |
| 146 | 146 |
| 147 bool Initialize(cc::LayerTreeSettings settings); | 147 void Initialize(cc::LayerTreeSettings settings); |
| 148 | 148 |
| 149 bool threaded_; | 149 bool threaded_; |
| 150 bool suppress_schedule_composite_; | 150 bool suppress_schedule_composite_; |
| 151 RenderWidget* widget_; | 151 RenderWidget* widget_; |
| 152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 } // namespace content | 155 } // namespace content |
| 156 | 156 |
| 157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |