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

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

Issue 10536080: Plumb rendering statistics to benchmarking extension. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Stuff. Created 8 years, 6 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
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <vector> 10 #include <vector>
(...skipping 22 matching lines...) Expand all
33 33
34 struct ViewHostMsg_UpdateRect_Params; 34 struct ViewHostMsg_UpdateRect_Params;
35 class ViewHostMsg_UpdateRect; 35 class ViewHostMsg_UpdateRect;
36 36
37 namespace IPC { 37 namespace IPC {
38 class SyncMessage; 38 class SyncMessage;
39 } 39 }
40 40
41 namespace WebKit { 41 namespace WebKit {
42 class WebMouseEvent; 42 class WebMouseEvent;
43 class WebRenderingStats;
43 class WebTouchEvent; 44 class WebTouchEvent;
44 class WebWidget; 45 class WebWidget;
45 } 46 }
46 47
47 namespace content { 48 namespace content {
48 class RenderWidgetTest; 49 class RenderWidgetTest;
49 } 50 }
50 51
51 namespace gfx { 52 namespace gfx {
52 class Point; 53 class Point;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual void resetInputMethod(); 146 virtual void resetInputMethod();
146 147
147 // Called when a plugin is moved. These events are queued up and sent with 148 // Called when a plugin is moved. These events are queued up and sent with
148 // the next paint or scroll message to the host. 149 // the next paint or scroll message to the host.
149 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move); 150 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move);
150 151
151 // Called when a plugin window has been destroyed, to make sure the currently 152 // Called when a plugin window has been destroyed, to make sure the currently
152 // pending moves don't try to reference it. 153 // pending moves don't try to reference it.
153 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); 154 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window);
154 155
156 void GetRenderingStats(WebKit::WebRenderingStats& stats) const;
157
155 // Close the underlying WebWidget. 158 // Close the underlying WebWidget.
156 virtual void Close(); 159 virtual void Close();
157 160
158 float filtered_time_per_frame() const { 161 float filtered_time_per_frame() const {
159 return filtered_time_per_frame_; 162 return filtered_time_per_frame_;
160 } 163 }
161 164
162 protected: 165 protected:
163 // Friend RefCounted so that the dtor can be non-public. Using this class 166 // Friend RefCounted so that the dtor can be non-public. Using this class
164 // without ref-counting is an error. 167 // without ref-counting is an error.
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 WebKit::WebScreenInfo screen_info_; 528 WebKit::WebScreenInfo screen_info_;
526 529
527 // The device scale factor. This value is computed from the DPI entries in 530 // The device scale factor. This value is computed from the DPI entries in
528 // |screen_info_| on some platforms, and defaults to 1 on other platforms. 531 // |screen_info_| on some platforms, and defaults to 1 on other platforms.
529 int device_scale_factor_; 532 int device_scale_factor_;
530 533
531 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 534 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
532 }; 535 };
533 536
534 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 537 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698