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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; | 222 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; |
223 scoped_refptr<base::SingleThreadTaskRunner> | 223 scoped_refptr<base::SingleThreadTaskRunner> |
224 GetCompositorMainThreadTaskRunner() override; | 224 GetCompositorMainThreadTaskRunner() override; |
225 scoped_refptr<base::SingleThreadTaskRunner> | 225 scoped_refptr<base::SingleThreadTaskRunner> |
226 GetCompositorImplThreadTaskRunner() override; | 226 GetCompositorImplThreadTaskRunner() override; |
227 blink::scheduler::RendererScheduler* GetRendererScheduler() override; | 227 blink::scheduler::RendererScheduler* GetRendererScheduler() override; |
228 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; | 228 cc::ImageSerializationProcessor* GetImageSerializationProcessor() override; |
229 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 229 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
230 bool AreImageDecodeTasksEnabled() override; | 230 bool AreImageDecodeTasksEnabled() override; |
231 bool IsThreadedAnimationEnabled() override; | 231 bool IsThreadedAnimationEnabled() override; |
| 232 bool IsScrollAnimatorEnabled() override; |
232 | 233 |
233 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. | 234 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. |
234 void OnRAILModeChanged(v8::RAILMode rail_mode) override; | 235 void OnRAILModeChanged(v8::RAILMode rail_mode) override; |
235 | 236 |
236 // Synchronously establish a channel to the GPU plugin if not previously | 237 // Synchronously establish a channel to the GPU plugin if not previously |
237 // established or if it has been lost (for example if the GPU plugin crashed). | 238 // established or if it has been lost (for example if the GPU plugin crashed). |
238 // If there is a pending asynchronous request, it will be completed by the | 239 // If there is a pending asynchronous request, it will be completed by the |
239 // time this routine returns. | 240 // time this routine returns. |
240 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); | 241 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); |
241 | 242 |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 int gpu_rasterization_msaa_sample_count_; | 683 int gpu_rasterization_msaa_sample_count_; |
683 bool is_lcd_text_enabled_; | 684 bool is_lcd_text_enabled_; |
684 bool is_distance_field_text_enabled_; | 685 bool is_distance_field_text_enabled_; |
685 bool is_zero_copy_enabled_; | 686 bool is_zero_copy_enabled_; |
686 bool is_gpu_memory_buffer_compositor_resources_enabled_; | 687 bool is_gpu_memory_buffer_compositor_resources_enabled_; |
687 bool is_partial_raster_enabled_; | 688 bool is_partial_raster_enabled_; |
688 bool is_elastic_overscroll_enabled_; | 689 bool is_elastic_overscroll_enabled_; |
689 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; | 690 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; |
690 bool are_image_decode_tasks_enabled_; | 691 bool are_image_decode_tasks_enabled_; |
691 bool is_threaded_animation_enabled_; | 692 bool is_threaded_animation_enabled_; |
| 693 bool is_scroll_animator_enabled_; |
692 | 694 |
693 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { | 695 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { |
694 public: | 696 public: |
695 PendingFrameCreate(int routing_id, | 697 PendingFrameCreate(int routing_id, |
696 mojom::FrameRequest frame_request, | 698 mojom::FrameRequest frame_request, |
697 mojom::FrameHostPtr frame_host); | 699 mojom::FrameHostPtr frame_host); |
698 | 700 |
699 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } | 701 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } |
700 mojom::FrameHostPtr TakeFrameHost() { | 702 mojom::FrameHostPtr TakeFrameHost() { |
701 frame_host_.set_connection_error_handler(base::Closure()); | 703 frame_host_.set_connection_error_handler(base::Closure()); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 738 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
737 }; | 739 }; |
738 | 740 |
739 #if defined(COMPILER_MSVC) | 741 #if defined(COMPILER_MSVC) |
740 #pragma warning(pop) | 742 #pragma warning(pop) |
741 #endif | 743 #endif |
742 | 744 |
743 } // namespace content | 745 } // namespace content |
744 | 746 |
745 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 747 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |