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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); | 232 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); |
233 | 233 |
234 // Handle loss of the shared GpuVDAContext3D context above. | 234 // Handle loss of the shared GpuVDAContext3D context above. |
235 static void OnGpuVDAContextLoss(); | 235 static void OnGpuVDAContextLoss(); |
236 | 236 |
237 // AudioRendererMixerManager instance which manages renderer side mixer | 237 // AudioRendererMixerManager instance which manages renderer side mixer |
238 // instances shared based on configured audio parameters. Lazily created on | 238 // instances shared based on configured audio parameters. Lazily created on |
239 // first call. | 239 // first call. |
240 AudioRendererMixerManager* GetAudioRendererMixerManager(); | 240 AudioRendererMixerManager* GetAudioRendererMixerManager(); |
241 | 241 |
| 242 #if defined(OS_WIN) |
| 243 void PreCacheFontCharacters(const LOGFONT& log_font, const std::wstring& str); |
| 244 #endif |
| 245 |
242 // For producing custom V8 histograms. Custom histograms are produced if all | 246 // For producing custom V8 histograms. Custom histograms are produced if all |
243 // RenderViews share the same host, and the host is in the pre-specified set | 247 // RenderViews share the same host, and the host is in the pre-specified set |
244 // of hosts we want to produce custom diagrams for. The name for a custom | 248 // of hosts we want to produce custom diagrams for. The name for a custom |
245 // diagram is the name of the corresponding generic diagram plus a | 249 // diagram is the name of the corresponding generic diagram plus a |
246 // host-specific suffix. | 250 // host-specific suffix. |
247 class CONTENT_EXPORT HistogramCustomizer { | 251 class CONTENT_EXPORT HistogramCustomizer { |
248 public: | 252 public: |
249 HistogramCustomizer(); | 253 HistogramCustomizer(); |
250 ~HistogramCustomizer(); | 254 ~HistogramCustomizer(); |
251 | 255 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 372 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
369 | 373 |
370 HistogramCustomizer histogram_customizer_; | 374 HistogramCustomizer histogram_customizer_; |
371 | 375 |
372 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 376 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
373 }; | 377 }; |
374 | 378 |
375 } // namespace content | 379 } // namespace content |
376 | 380 |
377 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 381 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |