| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) | 119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) |
| 120 OVERRIDE; | 120 OVERRIDE; |
| 121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; | 121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; |
| 122 virtual void WillCommit() OVERRIDE; | 122 virtual void WillCommit() OVERRIDE; |
| 123 virtual void DidCommit() OVERRIDE; | 123 virtual void DidCommit() OVERRIDE; |
| 124 virtual void DidCommitAndDrawFrame() OVERRIDE; | 124 virtual void DidCommitAndDrawFrame() OVERRIDE; |
| 125 virtual void DidCompleteSwapBuffers() OVERRIDE; | 125 virtual void DidCompleteSwapBuffers() OVERRIDE; |
| 126 virtual void ScheduleComposite() OVERRIDE; | 126 virtual void ScheduleComposite() OVERRIDE; |
| 127 virtual scoped_refptr<cc::ContextProvider> | 127 virtual scoped_refptr<cc::ContextProvider> |
| 128 OffscreenContextProvider() OVERRIDE; | 128 OffscreenContextProvider() OVERRIDE; |
| 129 virtual void RateLimitSharedMainThreadContext() OVERRIDE; |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 RenderWidgetCompositor(RenderWidget* widget, bool threaded); | 132 RenderWidgetCompositor(RenderWidget* widget, bool threaded); |
| 132 | 133 |
| 133 bool initialize(cc::LayerTreeSettings settings); | 134 bool initialize(cc::LayerTreeSettings settings); |
| 134 | 135 |
| 135 bool threaded_; | 136 bool threaded_; |
| 136 bool suppress_schedule_composite_; | 137 bool suppress_schedule_composite_; |
| 137 RenderWidget* widget_; | 138 RenderWidget* widget_; |
| 138 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 139 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 139 }; | 140 }; |
| 140 | 141 |
| 141 } // namespace content | 142 } // namespace content |
| 142 | 143 |
| 143 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ | 144 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ |
| OLD | NEW |