| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // Called when a plugin is moved. These events are queued up and sent with | 158 // Called when a plugin is moved. These events are queued up and sent with |
| 159 // the next paint or scroll message to the host. | 159 // the next paint or scroll message to the host. |
| 160 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move); | 160 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move); |
| 161 | 161 |
| 162 // Called when a plugin window has been destroyed, to make sure the currently | 162 // Called when a plugin window has been destroyed, to make sure the currently |
| 163 // pending moves don't try to reference it. | 163 // pending moves don't try to reference it. |
| 164 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); | 164 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); |
| 165 | 165 |
| 166 // Fills in a WebRenderingStatsImpl struct containing information about | 166 // Fills in a WebRenderingStatsImpl struct containing information about |
| 167 // rendering, e.g. count of frames rendered, time spent painting. | 167 // rendering, e.g. count of frames rendered, time spent painting. |
| 168 // This call is relatively expensive in threaded compositing mode, | |
| 169 // as it blocks on the compositor thread. | |
| 170 void GetRenderingStats(WebKit::WebRenderingStatsImpl&) const; | 168 void GetRenderingStats(WebKit::WebRenderingStatsImpl&) const; |
| 171 | 169 |
| 172 // Fills in a GpuRenderingStats struct containing information about | 170 // Fills in a GpuRenderingStats struct containing information about |
| 173 // GPU rendering, e.g. count of texture uploads performed, time spent | 171 // GPU rendering, e.g. count of texture uploads performed, time spent |
| 174 // uploading. | 172 // uploading. |
| 175 // This call is relatively expensive as it blocks on the GPU process | 173 // This call is relatively expensive as it blocks on the GPU process |
| 176 bool GetGpuRenderingStats(GpuRenderingStats*) const; | 174 bool GetGpuRenderingStats(GpuRenderingStats*) const; |
| 177 | 175 |
| 178 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); | 176 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); |
| 179 | 177 |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 673 |
| 676 // Specified whether the compositor will run in its own thread. | 674 // Specified whether the compositor will run in its own thread. |
| 677 bool is_threaded_compositing_enabled_; | 675 bool is_threaded_compositing_enabled_; |
| 678 | 676 |
| 679 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 677 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 680 }; | 678 }; |
| 681 | 679 |
| 682 } // namespace content | 680 } // namespace content |
| 683 | 681 |
| 684 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 682 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |