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