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> |
11 | 11 |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/string16.h" |
13 #include "base/timer.h" | 14 #include "base/timer.h" |
14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
15 #include "content/common/child_process.h" | 16 #include "content/common/child_process.h" |
16 #include "content/common/child_thread.h" | 17 #include "content/common/child_thread.h" |
17 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
18 #include "content/common/gpu/client/gpu_channel_host.h" | 19 #include "content/common/gpu/client/gpu_channel_host.h" |
19 #include "content/common/gpu/gpu_process_launch_causes.h" | 20 #include "content/common/gpu/gpu_process_launch_causes.h" |
20 #include "content/public/renderer/render_thread.h" | 21 #include "content/public/renderer/render_thread.h" |
21 #include "ipc/ipc_channel_proxy.h" | 22 #include "ipc/ipc_channel_proxy.h" |
22 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); | 233 WebGraphicsContext3DCommandBufferImpl* GetGpuVDAContext3D(); |
233 | 234 |
234 // Handle loss of the shared GpuVDAContext3D context above. | 235 // Handle loss of the shared GpuVDAContext3D context above. |
235 static void OnGpuVDAContextLoss(); | 236 static void OnGpuVDAContextLoss(); |
236 | 237 |
237 // AudioRendererMixerManager instance which manages renderer side mixer | 238 // AudioRendererMixerManager instance which manages renderer side mixer |
238 // instances shared based on configured audio parameters. Lazily created on | 239 // instances shared based on configured audio parameters. Lazily created on |
239 // first call. | 240 // first call. |
240 AudioRendererMixerManager* GetAudioRendererMixerManager(); | 241 AudioRendererMixerManager* GetAudioRendererMixerManager(); |
241 | 242 |
| 243 #if defined(OS_WIN) |
| 244 void PreCacheFontCharacters(const LOGFONT& log_font, const string16& str); |
| 245 #endif |
| 246 |
242 // For producing custom V8 histograms. Custom histograms are produced if all | 247 // 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 | 248 // 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 | 249 // 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 | 250 // diagram is the name of the corresponding generic diagram plus a |
246 // host-specific suffix. | 251 // host-specific suffix. |
247 class CONTENT_EXPORT HistogramCustomizer { | 252 class CONTENT_EXPORT HistogramCustomizer { |
248 public: | 253 public: |
249 HistogramCustomizer(); | 254 HistogramCustomizer(); |
250 ~HistogramCustomizer(); | 255 ~HistogramCustomizer(); |
251 | 256 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 373 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
369 | 374 |
370 HistogramCustomizer histogram_customizer_; | 375 HistogramCustomizer histogram_customizer_; |
371 | 376 |
372 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 377 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
373 }; | 378 }; |
374 | 379 |
375 } // namespace content | 380 } // namespace content |
376 | 381 |
377 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 382 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |