OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 // Called when a plugin window has been destroyed, to make sure the currently | 147 // Called when a plugin window has been destroyed, to make sure the currently |
148 // pending moves don't try to reference it. | 148 // pending moves don't try to reference it. |
149 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 149 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
150 | 150 |
151 // Fills in a WebRenderingStats struct containing information about | 151 // Fills in a WebRenderingStats struct containing information about |
152 // rendering, e.g. count of frames rendered, time spent painting. | 152 // rendering, e.g. count of frames rendered, time spent painting. |
153 // This call is relatively expensive in threaded compositing mode, | 153 // This call is relatively expensive in threaded compositing mode, |
154 // as it blocks on the compositor thread. | 154 // as it blocks on the compositor thread. |
155 void GetRenderingStats(WebKit::WebRenderingStats&) const; | 155 void GetRenderingStats(WebKit::WebRenderingStats&) const; |
| 156 void StartRecordingRenderingStats() const { } |
| 157 void StopRecordingRenderingStats(WebKit::WebRenderingStats&) const; |
156 | 158 |
157 // Fills in a GpuRenderingStats struct containing information about | 159 // Fills in a GpuRenderingStats struct containing information about |
158 // GPU rendering, e.g. count of texture uploads performed, time spent | 160 // GPU rendering, e.g. count of texture uploads performed, time spent |
159 // uploading. | 161 // uploading. |
160 // This call is relatively expensive as it blocks on the GPU process | 162 // This call is relatively expensive as it blocks on the GPU process |
161 bool GetGpuRenderingStats(GpuRenderingStats*) const; | 163 bool GetGpuRenderingStats(GpuRenderingStats*) const; |
162 | 164 |
163 // Callback for use with BeginSmoothScroll. | 165 // Callback for use with BeginSmoothScroll. |
164 typedef base::Callback<void()> SmoothScrollCompletionCallback; | 166 typedef base::Callback<void()> SmoothScrollCompletionCallback; |
165 | 167 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 | 612 |
611 // Specified whether the compositor will run in its own thread. | 613 // Specified whether the compositor will run in its own thread. |
612 bool is_threaded_compositing_enabled_; | 614 bool is_threaded_compositing_enabled_; |
613 | 615 |
614 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 616 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
615 }; | 617 }; |
616 | 618 |
617 } // namespace content | 619 } // namespace content |
618 | 620 |
619 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 621 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |