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