| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 bool IsDistanceFieldTextEnabled() override; | 226 bool IsDistanceFieldTextEnabled() override; |
| 227 bool IsZeroCopyEnabled() override; | 227 bool IsZeroCopyEnabled() override; |
| 228 bool IsPartialRasterEnabled() override; | 228 bool IsPartialRasterEnabled() override; |
| 229 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; | 229 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; |
| 230 bool IsElasticOverscrollEnabled() override; | 230 bool IsElasticOverscrollEnabled() override; |
| 231 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; | 231 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; |
| 232 scoped_refptr<base::SingleThreadTaskRunner> | 232 scoped_refptr<base::SingleThreadTaskRunner> |
| 233 GetCompositorMainThreadTaskRunner() override; | 233 GetCompositorMainThreadTaskRunner() override; |
| 234 scoped_refptr<base::SingleThreadTaskRunner> | 234 scoped_refptr<base::SingleThreadTaskRunner> |
| 235 GetCompositorImplThreadTaskRunner() override; | 235 GetCompositorImplThreadTaskRunner() override; |
| 236 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | |
| 237 blink::scheduler::RendererScheduler* GetRendererScheduler() override; | 236 blink::scheduler::RendererScheduler* GetRendererScheduler() override; |
| 238 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; | 237 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; |
| 239 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 238 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
| 240 bool AreImageDecodeTasksEnabled() override; | 239 bool AreImageDecodeTasksEnabled() override; |
| 241 bool IsThreadedAnimationEnabled() override; | 240 bool IsThreadedAnimationEnabled() override; |
| 242 | 241 |
| 243 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. | 242 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. |
| 244 void OnRAILModeChanged(v8::RAILMode rail_mode) override; | 243 void OnRAILModeChanged(v8::RAILMode rail_mode) override; |
| 245 | 244 |
| 246 // Synchronously establish a channel to the GPU plugin if not previously | 245 // Synchronously establish a channel to the GPU plugin if not previously |
| 247 // established or if it has been lost (for example if the GPU plugin crashed). | 246 // established or if it has been lost (for example if the GPU plugin crashed). |
| 248 // If there is a pending asynchronous request, it will be completed by the | 247 // If there is a pending asynchronous request, it will be completed by the |
| 249 // time this routine returns. | 248 // time this routine returns. |
| 250 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); | 249 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); |
| 251 | 250 |
| 251 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager(); |
| 252 |
| 252 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( | 253 std::unique_ptr<cc::CompositorFrameSink> CreateCompositorFrameSink( |
| 253 bool use_software, | 254 bool use_software, |
| 254 int routing_id, | 255 int routing_id, |
| 255 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue, | 256 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue, |
| 256 const GURL& url); | 257 const GURL& url); |
| 257 | 258 |
| 258 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry(); | 259 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry(); |
| 259 | 260 |
| 260 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( | 261 std::unique_ptr<cc::SwapPromise> RequestCopyOfOutputForLayoutTest( |
| 261 int32_t routing_id, | 262 int32_t routing_id, |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 747 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 747 }; | 748 }; |
| 748 | 749 |
| 749 #if defined(COMPILER_MSVC) | 750 #if defined(COMPILER_MSVC) |
| 750 #pragma warning(pop) | 751 #pragma warning(pop) |
| 751 #endif | 752 #endif |
| 752 | 753 |
| 753 } // namespace content | 754 } // namespace content |
| 754 | 755 |
| 755 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 756 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |