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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 bool IsElasticOverscrollEnabled() override; | 229 bool IsElasticOverscrollEnabled() override; |
230 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; | 230 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; |
231 scoped_refptr<base::SingleThreadTaskRunner> | 231 scoped_refptr<base::SingleThreadTaskRunner> |
232 GetCompositorMainThreadTaskRunner() override; | 232 GetCompositorMainThreadTaskRunner() override; |
233 scoped_refptr<base::SingleThreadTaskRunner> | 233 scoped_refptr<base::SingleThreadTaskRunner> |
234 GetCompositorImplThreadTaskRunner() override; | 234 GetCompositorImplThreadTaskRunner() override; |
235 blink::scheduler::RendererScheduler* GetRendererScheduler() override; | 235 blink::scheduler::RendererScheduler* GetRendererScheduler() override; |
236 cc::TaskGraphRunner* GetTaskGraphRunner() override; | 236 cc::TaskGraphRunner* GetTaskGraphRunner() override; |
237 bool AreImageDecodeTasksEnabled() override; | 237 bool AreImageDecodeTasksEnabled() override; |
238 bool IsThreadedAnimationEnabled() override; | 238 bool IsThreadedAnimationEnabled() override; |
239 bool IsScrollAnimatorEnabled() override; | |
240 | 239 |
241 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. | 240 // blink::scheduler::RendererScheduler::RAILModeObserver implementation. |
242 void OnRAILModeChanged(v8::RAILMode rail_mode) override; | 241 void OnRAILModeChanged(v8::RAILMode rail_mode) override; |
243 | 242 |
244 // Synchronously establish a channel to the GPU plugin if not previously | 243 // Synchronously establish a channel to the GPU plugin if not previously |
245 // 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). |
246 // 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 |
247 // time this routine returns. | 246 // time this routine returns. |
248 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); | 247 scoped_refptr<gpu::GpuChannelHost> EstablishGpuChannelSync(); |
249 | 248 |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 int gpu_rasterization_msaa_sample_count_; | 713 int gpu_rasterization_msaa_sample_count_; |
715 bool is_lcd_text_enabled_; | 714 bool is_lcd_text_enabled_; |
716 bool is_distance_field_text_enabled_; | 715 bool is_distance_field_text_enabled_; |
717 bool is_zero_copy_enabled_; | 716 bool is_zero_copy_enabled_; |
718 bool is_gpu_memory_buffer_compositor_resources_enabled_; | 717 bool is_gpu_memory_buffer_compositor_resources_enabled_; |
719 bool is_partial_raster_enabled_; | 718 bool is_partial_raster_enabled_; |
720 bool is_elastic_overscroll_enabled_; | 719 bool is_elastic_overscroll_enabled_; |
721 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; | 720 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; |
722 bool are_image_decode_tasks_enabled_; | 721 bool are_image_decode_tasks_enabled_; |
723 bool is_threaded_animation_enabled_; | 722 bool is_threaded_animation_enabled_; |
724 bool is_scroll_animator_enabled_; | |
725 | 723 |
726 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { | 724 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { |
727 public: | 725 public: |
728 PendingFrameCreate(int routing_id, | 726 PendingFrameCreate(int routing_id, |
729 mojom::FrameRequest frame_request, | 727 mojom::FrameRequest frame_request, |
730 mojom::FrameHostPtr frame_host); | 728 mojom::FrameHostPtr frame_host); |
731 | 729 |
732 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } | 730 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } |
733 mojom::FrameHostPtr TakeFrameHost() { | 731 mojom::FrameHostPtr TakeFrameHost() { |
734 frame_host_.set_connection_error_handler(base::Closure()); | 732 frame_host_.set_connection_error_handler(base::Closure()); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 770 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
773 }; | 771 }; |
774 | 772 |
775 #if defined(COMPILER_MSVC) | 773 #if defined(COMPILER_MSVC) |
776 #pragma warning(pop) | 774 #pragma warning(pop) |
777 #endif | 775 #endif |
778 | 776 |
779 } // namespace content | 777 } // namespace content |
780 | 778 |
781 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 779 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |