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

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

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add surface_id to GpuChannelMsg_CollectRenderingStats and collect both global and surface specific … Created 8 years, 3 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 | Annotate | Revision Log
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 #include <vector> 10 #include <vector>
(...skipping 30 matching lines...) Expand all
41 class SyncMessage; 41 class SyncMessage;
42 } 42 }
43 43
44 namespace WebKit { 44 namespace WebKit {
45 class WebMouseEvent; 45 class WebMouseEvent;
46 class WebTouchEvent; 46 class WebTouchEvent;
47 class WebWidget; 47 class WebWidget;
48 } 48 }
49 49
50 namespace content { 50 namespace content {
51 struct GpuRenderingStats;
51 class RenderWidgetTest; 52 class RenderWidgetTest;
52 } 53 }
53 54
54 namespace gfx { 55 namespace gfx {
55 class Point; 56 class Point;
56 } 57 }
57 58
58 namespace skia { 59 namespace skia {
59 class PlatformCanvas; 60 class PlatformCanvas;
60 } 61 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Called when a plugin window has been destroyed, to make sure the currently 155 // Called when a plugin window has been destroyed, to make sure the currently
155 // pending moves don't try to reference it. 156 // pending moves don't try to reference it.
156 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); 157 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window);
157 158
158 // Fills in a WebRenderingStats struct containing information about 159 // Fills in a WebRenderingStats struct containing information about
159 // rendering, e.g. count of frames rendered, time spent painting. 160 // rendering, e.g. count of frames rendered, time spent painting.
160 // This call is relatively expensive in threaded compositing mode, 161 // This call is relatively expensive in threaded compositing mode,
161 // as it blocks on the compositor thread. 162 // as it blocks on the compositor thread.
162 void GetRenderingStats(WebKit::WebRenderingStats&) const; 163 void GetRenderingStats(WebKit::WebRenderingStats&) const;
163 164
165 // Fills in a GpuRenderingStats struct containing information about
166 // GPU rendering, e.g. count of texture uploads performed, time spent
167 // uploading.
168 // This call is relatively expensive as it blocks on the GPU process
169 void GetGpuRenderingStats(content::GpuRenderingStats&) const;
apatrick_chromium 2012/08/28 20:07:06 content::GpuRenderingStats* so it is clear it is a
170
164 // Callback for use with BeginSmoothScroll. 171 // Callback for use with BeginSmoothScroll.
165 typedef base::Callback<void()> SmoothScrollCompletionCallback; 172 typedef base::Callback<void()> SmoothScrollCompletionCallback;
166 173
167 // Directs the host to begin a smooth scroll. This scroll should have the same 174 // Directs the host to begin a smooth scroll. This scroll should have the same
168 // performance characteristics as a user-initiated scroll. Returns an ID of 175 // performance characteristics as a user-initiated scroll. Returns an ID of
169 // the scroll gesture. 176 // the scroll gesture.
170 void BeginSmoothScroll(bool scroll_down, 177 void BeginSmoothScroll(bool scroll_down,
171 bool scroll_far, 178 bool scroll_far,
172 const SmoothScrollCompletionCallback& callback); 179 const SmoothScrollCompletionCallback& callback);
173 180
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 // State associated with the BeginSmoothScroll synthetic scrolling function. 602 // State associated with the BeginSmoothScroll synthetic scrolling function.
596 int next_smooth_scroll_gesture_id_; 603 int next_smooth_scroll_gesture_id_;
597 typedef std::map<int, SmoothScrollCompletionCallback> 604 typedef std::map<int, SmoothScrollCompletionCallback>
598 PendingSmoothScrollGestureMap; 605 PendingSmoothScrollGestureMap;
599 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; 606 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_;
600 607
601 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 608 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
602 }; 609 };
603 610
604 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 611 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698