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/memory/memory_pressure_listener.h" | 12 #include "base/memory/memory_pressure_listener.h" |
13 #include "base/metrics/user_metrics_action.h" | 13 #include "base/metrics/user_metrics_action.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "content/child/child_thread.h" | 19 #include "content/child/child_thread.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
21 #include "content/common/gpu/client/gpu_channel_host.h" | 21 #include "content/common/gpu/client/gpu_channel_host.h" |
22 #include "content/public/renderer/render_thread.h" | 22 #include "content/public/renderer/render_thread.h" |
23 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" | |
24 #include "ipc/ipc_channel_proxy.h" | 23 #include "ipc/ipc_channel_proxy.h" |
25 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
26 | 25 |
27 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
28 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 27 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
29 #endif | 28 #endif |
30 | 29 |
31 class GrContext; | 30 class GrContext; |
32 class SkBitmap; | 31 class SkBitmap; |
33 struct ViewMsg_New_Params; | 32 struct ViewMsg_New_Params; |
(...skipping 13 matching lines...) Expand all Loading... |
47 namespace cc { | 46 namespace cc { |
48 class ContextProvider; | 47 class ContextProvider; |
49 } | 48 } |
50 | 49 |
51 namespace IPC { | 50 namespace IPC { |
52 class ForwardingMessageFilter; | 51 class ForwardingMessageFilter; |
53 } | 52 } |
54 | 53 |
55 namespace media { | 54 namespace media { |
56 class AudioHardwareConfig; | 55 class AudioHardwareConfig; |
| 56 class GpuVideoAcceleratorFactories; |
57 } | 57 } |
58 | 58 |
59 namespace v8 { | 59 namespace v8 { |
60 class Extension; | 60 class Extension; |
61 } | 61 } |
62 | 62 |
63 namespace webkit { | 63 namespace webkit { |
64 namespace gpu { | 64 namespace gpu { |
65 class ContextProviderWebContext; | 65 class ContextProviderWebContext; |
66 class GrContextForWebGraphicsContext3D; | 66 class GrContextForWebGraphicsContext3D; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Returns a MessageLoopProxy instance corresponding to the message loop | 257 // Returns a MessageLoopProxy instance corresponding to the message loop |
258 // of the thread on which media operations should be run. Must be called | 258 // of the thread on which media operations should be run. Must be called |
259 // on the renderer's main thread. | 259 // on the renderer's main thread. |
260 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy(); | 260 scoped_refptr<base::MessageLoopProxy> GetMediaThreadMessageLoopProxy(); |
261 | 261 |
262 // Causes the idle handler to skip sending idle notifications | 262 // Causes the idle handler to skip sending idle notifications |
263 // on the two next scheduled calls, so idle notifications are | 263 // on the two next scheduled calls, so idle notifications are |
264 // not sent for at least one notification delay. | 264 // not sent for at least one notification delay. |
265 void PostponeIdleNotification(); | 265 void PostponeIdleNotification(); |
266 | 266 |
267 scoped_refptr<RendererGpuVideoAcceleratorFactories> GetGpuFactories(); | 267 scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories(); |
268 | 268 |
269 scoped_refptr<cc::ContextProvider> OffscreenCompositorContextProvider(); | 269 scoped_refptr<cc::ContextProvider> OffscreenCompositorContextProvider(); |
270 scoped_refptr<webkit::gpu::ContextProviderWebContext> | 270 scoped_refptr<webkit::gpu::ContextProviderWebContext> |
271 SharedMainThreadContextProvider(); | 271 SharedMainThreadContextProvider(); |
272 | 272 |
273 // AudioRendererMixerManager instance which manages renderer side mixer | 273 // AudioRendererMixerManager instance which manages renderer side mixer |
274 // instances shared based on configured audio parameters. Lazily created on | 274 // instances shared based on configured audio parameters. Lazily created on |
275 // first call. | 275 // first call. |
276 AudioRendererMixerManager* GetAudioRendererMixerManager(); | 276 AudioRendererMixerManager* GetAudioRendererMixerManager(); |
277 | 277 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 // multiple threads. Current allocation mechanism for IOSurface | 504 // multiple threads. Current allocation mechanism for IOSurface |
505 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 505 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
506 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 506 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
507 | 507 |
508 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 508 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
509 }; | 509 }; |
510 | 510 |
511 } // namespace content | 511 } // namespace content |
512 | 512 |
513 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 513 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |