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