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

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

Issue 10868048: Report texture upload time in renderingStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class ScopedCOMInitializer; 51 class ScopedCOMInitializer;
52 } 52 }
53 } 53 }
54 54
55 namespace IPC { 55 namespace IPC {
56 class ForwardingMessageFilter; 56 class ForwardingMessageFilter;
57 } 57 }
58 58
59 namespace content { 59 namespace content {
60 class AudioRendererMixerManager; 60 class AudioRendererMixerManager;
61 struct GpuRenderingStats;
61 class MediaStreamCenter; 62 class MediaStreamCenter;
62 class RenderProcessObserver; 63 class RenderProcessObserver;
63 64
64 namespace old { 65 namespace old {
65 class BrowserPluginChannelManager; 66 class BrowserPluginChannelManager;
66 class BrowserPluginRegistry; 67 class BrowserPluginRegistry;
67 } 68 }
68 69
69 } 70 }
70 71
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); 232 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D();
232 233
233 // Handle loss of the shared GpuVDAContext3D context above. 234 // Handle loss of the shared GpuVDAContext3D context above.
234 static void OnGpuVDAContextLoss(); 235 static void OnGpuVDAContextLoss();
235 236
236 // AudioRendererMixerManager instance which manages renderer side mixer 237 // AudioRendererMixerManager instance which manages renderer side mixer
237 // instances shared based on configured audio parameters. Lazily created on 238 // instances shared based on configured audio parameters. Lazily created on
238 // first call. 239 // first call.
239 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); 240 content::AudioRendererMixerManager* GetAudioRendererMixerManager();
240 241
242 // Collect GPU rendering stats.
243 void GetGpuRenderingStats(content::GpuRenderingStats& stats);
244
241 private: 245 private:
242 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; 246 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE;
243 247
244 void Init(); 248 void Init();
245 249
246 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level); 250 void OnSetZoomLevelForCurrentURL(const std::string& host, double zoom_level);
247 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors); 251 void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
248 void OnCreateNewView(const ViewMsg_New_Params& params); 252 void OnCreateNewView(const ViewMsg_New_Params& params);
249 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 253 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
250 void OnPurgePluginListCache(bool reload_pages); 254 void OnPurgePluginListCache(bool reload_pages);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 class GpuVDAContextLostCallback; 319 class GpuVDAContextLostCallback;
316 scoped_ptr<GpuVDAContextLostCallback> context_lost_cb_; 320 scoped_ptr<GpuVDAContextLostCallback> context_lost_cb_;
317 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; 321 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_;
318 322
319 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; 323 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_;
320 324
321 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 325 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
322 }; 326 };
323 327
324 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 328 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698