| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 } | 67 } |
| 68 | 68 |
| 69 namespace base { | 69 namespace base { |
| 70 class SingleThreadTaskRunner; | 70 class SingleThreadTaskRunner; |
| 71 class Thread; | 71 class Thread; |
| 72 } | 72 } |
| 73 | 73 |
| 74 namespace cc { | 74 namespace cc { |
| 75 class BeginFrameSource; | 75 class BeginFrameSource; |
| 76 class CompositorFrameSink; | 76 class CompositorFrameSink; |
| 77 class SyntheticBeginFrameSource; |
| 77 class TaskGraphRunner; | 78 class TaskGraphRunner; |
| 78 } | 79 } |
| 79 | 80 |
| 80 namespace discardable_memory { | 81 namespace discardable_memory { |
| 81 class ClientDiscardableSharedMemoryManager; | 82 class ClientDiscardableSharedMemoryManager; |
| 82 } | 83 } |
| 83 | 84 |
| 84 namespace gpu { | 85 namespace gpu { |
| 85 class GpuChannelHost; | 86 class GpuChannelHost; |
| 86 } | 87 } |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 void RecordPurgeAndSuspendMemoryGrowthMetrics() const; | 583 void RecordPurgeAndSuspendMemoryGrowthMetrics() const; |
| 583 | 584 |
| 584 void ReleaseFreeMemory(); | 585 void ReleaseFreeMemory(); |
| 585 | 586 |
| 586 void OnSyncMemoryPressure( | 587 void OnSyncMemoryPressure( |
| 587 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); | 588 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level); |
| 588 | 589 |
| 589 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 590 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 590 int routing_id); | 591 int routing_id); |
| 591 | 592 |
| 593 std::unique_ptr<cc::SyntheticBeginFrameSource> |
| 594 CreateSyntheticBeginFrameSource(); |
| 595 |
| 592 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); | 596 void OnRendererInterfaceRequest(mojom::RendererAssociatedRequest request); |
| 593 | 597 |
| 594 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> | 598 std::unique_ptr<discardable_memory::ClientDiscardableSharedMemoryManager> |
| 595 discardable_shared_memory_manager_; | 599 discardable_shared_memory_manager_; |
| 596 | 600 |
| 597 // These objects live solely on the render thread. | 601 // These objects live solely on the render thread. |
| 598 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; | 602 std::unique_ptr<AppCacheDispatcher> appcache_dispatcher_; |
| 599 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; | 603 std::unique_ptr<DomStorageDispatcher> dom_storage_dispatcher_; |
| 600 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; | 604 std::unique_ptr<IndexedDBDispatcher> main_thread_indexed_db_dispatcher_; |
| 601 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; | 605 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler_; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 793 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 790 }; | 794 }; |
| 791 | 795 |
| 792 #if defined(COMPILER_MSVC) | 796 #if defined(COMPILER_MSVC) |
| 793 #pragma warning(pop) | 797 #pragma warning(pop) |
| 794 #endif | 798 #endif |
| 795 | 799 |
| 796 } // namespace content | 800 } // namespace content |
| 797 | 801 |
| 798 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 802 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |