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

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: Early out in methods, pass raw pointers, updated 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
« cc/rendering_stats_recorder.cc ('K') | « cc/worker_pool.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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« cc/rendering_stats_recorder.cc ('K') | « cc/worker_pool.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698