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/observer_list.h" | 13 #include "base/observer_list.h" |
14 #include "base/process/process_handle.h" | 14 #include "base/process/process_handle.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/threading/thread_checker.h" |
16 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
17 #include "build/build_config.h" | 18 #include "build/build_config.h" |
18 #include "content/child/child_thread.h" | 19 #include "content/child/child_thread.h" |
19 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
20 #include "content/common/gpu/client/gpu_channel_host.h" | 21 #include "content/common/gpu/client/gpu_channel_host.h" |
21 #include "content/public/renderer/render_thread.h" | 22 #include "content/public/renderer/render_thread.h" |
22 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" | 23 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" |
23 #include "ipc/ipc_channel_proxy.h" | 24 #include "ipc/ipc_channel_proxy.h" |
24 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
25 | 26 |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 HistogramCustomizer histogram_customizer_; | 498 HistogramCustomizer histogram_customizer_; |
498 | 499 |
499 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 500 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
500 | 501 |
501 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 502 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
502 | 503 |
503 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 504 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
504 | 505 |
505 base::ProcessId renderer_process_id_; | 506 base::ProcessId renderer_process_id_; |
506 | 507 |
| 508 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
| 509 // multiple threads. Current allocation mechanism for IOSurface |
| 510 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
| 511 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
| 512 |
507 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 513 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
508 }; | 514 }; |
509 | 515 |
510 } // namespace content | 516 } // namespace content |
511 | 517 |
512 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 518 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |