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_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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); | 243 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); |
244 | 244 |
245 // Handle loss of the shared GpuVDAContext3D context above. | 245 // Handle loss of the shared GpuVDAContext3D context above. |
246 static void OnGpuVDAContextLoss(); | 246 static void OnGpuVDAContextLoss(); |
247 | 247 |
248 // AudioRendererMixerManager instance which manages renderer side mixer | 248 // AudioRendererMixerManager instance which manages renderer side mixer |
249 // instances shared based on configured audio parameters. Lazily created on | 249 // instances shared based on configured audio parameters. Lazily created on |
250 // first call. | 250 // first call. |
251 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); | 251 content::AudioRendererMixerManager* GetAudioRendererMixerManager(); |
252 | 252 |
| 253 #if defined(OS_WIN) |
| 254 void PreCacheFontCharacters(const LOGFONT& log_font, const std::wstring& str); |
| 255 #endif |
| 256 |
253 // For producing custom V8 histograms. Custom histograms are produced if all | 257 // For producing custom V8 histograms. Custom histograms are produced if all |
254 // RenderViews share the same host, and the host is in the pre-specified set | 258 // RenderViews share the same host, and the host is in the pre-specified set |
255 // of hosts we want to produce custom diagrams for. The name for a custom | 259 // of hosts we want to produce custom diagrams for. The name for a custom |
256 // diagram is the name of the corresponding generic diagram plus a | 260 // diagram is the name of the corresponding generic diagram plus a |
257 // host-specific suffix. | 261 // host-specific suffix. |
258 class CONTENT_EXPORT HistogramCustomizer { | 262 class CONTENT_EXPORT HistogramCustomizer { |
259 public: | 263 public: |
260 HistogramCustomizer(); | 264 HistogramCustomizer(); |
261 ~HistogramCustomizer(); | 265 ~HistogramCustomizer(); |
262 | 266 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; | 384 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> gpu_vda_context3d_; |
381 | 385 |
382 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; | 386 scoped_ptr<content::AudioRendererMixerManager> audio_renderer_mixer_manager_; |
383 | 387 |
384 HistogramCustomizer histogram_customizer_; | 388 HistogramCustomizer histogram_customizer_; |
385 | 389 |
386 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 390 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
387 }; | 391 }; |
388 | 392 |
389 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 393 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |