Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: content/renderer/render_widget.h

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated all tests Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698