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 #include <vector> | 10 #include <vector> |
(...skipping 30 matching lines...) Expand all Loading... |
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 Loading... |
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 bool GetGpuRenderingStats(content::GpuRenderingStats*) const; |
| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
596 // State associated with the BeginSmoothScroll synthetic scrolling function. | 603 // State associated with the BeginSmoothScroll synthetic scrolling function. |
597 int next_smooth_scroll_gesture_id_; | 604 int next_smooth_scroll_gesture_id_; |
598 typedef std::map<int, SmoothScrollCompletionCallback> | 605 typedef std::map<int, SmoothScrollCompletionCallback> |
599 PendingSmoothScrollGestureMap; | 606 PendingSmoothScrollGestureMap; |
600 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; | 607 PendingSmoothScrollGestureMap pending_smooth_scroll_gestures_; |
601 | 608 |
602 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 609 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
603 }; | 610 }; |
604 | 611 |
605 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 612 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |