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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; | 228 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; |
229 scoped_refptr<base::SingleThreadTaskRunner> | 229 scoped_refptr<base::SingleThreadTaskRunner> |
230 GetCompositorMainThreadTaskRunner() override; | 230 GetCompositorMainThreadTaskRunner() override; |
231 scoped_refptr<base::SingleThreadTaskRunner> | 231 scoped_refptr<base::SingleThreadTaskRunner> |
232 GetCompositorImplThreadTaskRunner() override; | 232 GetCompositorImplThreadTaskRunner() override; |
233 blink::scheduler::RendererScheduler* GetRendererScheduler() override; | 233 blink::scheduler::RendererScheduler* GetRendererScheduler() override; |
234 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; | 234 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; |
235 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 235 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
236 bool AreImageDecodeTasksEnabled() override; | 236 bool AreImageDecodeTasksEnabled() override; |
237 bool IsThreadedAnimationEnabled() override; | 237 bool IsThreadedAnimationEnabled() override; |
| 238 bool IsScrollAnimatorEnabled() override; |
238 | 239 |
239 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. | 240 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. |
240 void OnRAILModeChanged(v8::RAILMode rail_mode) override; | 241 void OnRAILModeChanged(v8::RAILMode rail_mode) override; |
241 | 242 |
242 // Synchronously establish a channel to the GPU plugin if not previously | 243 // Synchronously establish a channel to the GPU plugin if not previously |
243 // established or if it has been lost (for example if the GPU plugin crashed). | 244 // established or if it has been lost (for example if the GPU plugin crashed). |
244 // If there is a pending asynchronous request, it will be completed by the | 245 // If there is a pending asynchronous request, it will be completed by the |
245 // time this routine returns. | 246 // time this routine returns. |
246 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); | 247 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); |
247 | 248 |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 int gpu_rasterization_msaa_sample_count_; | 705 int gpu_rasterization_msaa_sample_count_; |
705 bool is_lcd_text_enabled_; | 706 bool is_lcd_text_enabled_; |
706 bool is_distance_field_text_enabled_; | 707 bool is_distance_field_text_enabled_; |
707 bool is_zero_copy_enabled_; | 708 bool is_zero_copy_enabled_; |
708 bool is_gpu_memory_buffer_compositor_resources_enabled_; | 709 bool is_gpu_memory_buffer_compositor_resources_enabled_; |
709 bool is_partial_raster_enabled_; | 710 bool is_partial_raster_enabled_; |
710 bool is_elastic_overscroll_enabled_; | 711 bool is_elastic_overscroll_enabled_; |
711 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; | 712 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; |
712 bool are_image_decode_tasks_enabled_; | 713 bool are_image_decode_tasks_enabled_; |
713 bool is_threaded_animation_enabled_; | 714 bool is_threaded_animation_enabled_; |
| 715 bool is_scroll_animator_enabled_; |
714 | 716 |
715 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { | 717 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { |
716 public: | 718 public: |
717 PendingFrameCreate(int routing_id, | 719 PendingFrameCreate(int routing_id, |
718 mojom::FrameRequest frame_request, | 720 mojom::FrameRequest frame_request, |
719 mojom::FrameHostPtr frame_host); | 721 mojom::FrameHostPtr frame_host); |
720 | 722 |
721 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } | 723 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } |
722 mojom::FrameHostPtr TakeFrameHost() { | 724 mojom::FrameHostPtr TakeFrameHost() { |
723 frame_host_.set_connection_error_handler(base::Closure()); | 725 frame_host_.set_connection_error_handler(base::Closure()); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 761 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
760 }; | 762 }; |
761 | 763 |
762 #if defined(COMPILER_MSVC) | 764 #if defined(COMPILER_MSVC) |
763 #pragma warning(pop) | 765 #pragma warning(pop) |
764 #endif | 766 #endif |
765 | 767 |
766 } // namespace content | 768 } // namespace content |
767 | 769 |
768 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 770 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |