| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 GetCompositorImplThreadTaskRunner() override; | 208 GetCompositorImplThreadTaskRunner() override; |
| 209 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | 209 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
| 210 scheduler::RendererScheduler* GetRendererScheduler() override; | 210 scheduler::RendererScheduler* GetRendererScheduler() override; |
| 211 cc::ContextProvider* GetSharedMainThreadContextProvider() override; | 211 cc::ContextProvider* GetSharedMainThreadContextProvider() override; |
| 212 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 212 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| 213 int routing_id) override; | 213 int routing_id) override; |
| 214 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 214 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
| 215 bool AreImageDecodeTasksEnabled() override; | 215 bool AreImageDecodeTasksEnabled() override; |
| 216 bool IsThreadedAnimationEnabled() override; | 216 bool IsThreadedAnimationEnabled() override; |
| 217 | 217 |
| 218 // ChildThreadImpl overrides: |
| 219 #if defined(MOJO_SHELL_CLIENT) |
| 220 void OnMojoReady() override; |
| 221 #endif |
| 222 |
| 218 // Synchronously establish a channel to the GPU plugin if not previously | 223 // Synchronously establish a channel to the GPU plugin if not previously |
| 219 // established or if it has been lost (for example if the GPU plugin crashed). | 224 // established or if it has been lost (for example if the GPU plugin crashed). |
| 220 // If there is a pending asynchronous request, it will be completed by the | 225 // If there is a pending asynchronous request, it will be completed by the |
| 221 // time this routine returns. | 226 // time this routine returns. |
| 222 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch); | 227 GpuChannelHost* EstablishGpuChannelSync(CauseForGpuLaunch); |
| 223 | 228 |
| 224 | 229 |
| 225 // This method modifies how the next message is sent. Normally, when sending | 230 // This method modifies how the next message is sent. Normally, when sending |
| 226 // a synchronous message that runs a nested message loop, we need to suspend | 231 // a synchronous message that runs a nested message loop, we need to suspend |
| 227 // callbacks into WebKit. This involves disabling timers and deferring | 232 // callbacks into WebKit. This involves disabling timers and deferring |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 660 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 656 }; | 661 }; |
| 657 | 662 |
| 658 #if defined(COMPILER_MSVC) | 663 #if defined(COMPILER_MSVC) |
| 659 #pragma warning(pop) | 664 #pragma warning(pop) |
| 660 #endif | 665 #endif |
| 661 | 666 |
| 662 } // namespace content | 667 } // namespace content |
| 663 | 668 |
| 664 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 669 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |