Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: dcheng@'s suggestions, replumb enable_scroll_animator. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 int gpu_rasterization_msaa_sample_count_; 694 int gpu_rasterization_msaa_sample_count_;
694 bool is_lcd_text_enabled_; 695 bool is_lcd_text_enabled_;
695 bool is_distance_field_text_enabled_; 696 bool is_distance_field_text_enabled_;
696 bool is_zero_copy_enabled_; 697 bool is_zero_copy_enabled_;
697 bool is_gpu_memory_buffer_compositor_resources_enabled_; 698 bool is_gpu_memory_buffer_compositor_resources_enabled_;
698 bool is_partial_raster_enabled_; 699 bool is_partial_raster_enabled_;
699 bool is_elastic_overscroll_enabled_; 700 bool is_elastic_overscroll_enabled_;
700 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; 701 cc::BufferToTextureTargetMap buffer_to_texture_target_map_;
701 bool are_image_decode_tasks_enabled_; 702 bool are_image_decode_tasks_enabled_;
702 bool is_threaded_animation_enabled_; 703 bool is_threaded_animation_enabled_;
704 bool is_scroll_animator_enabled_;
703 705
704 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> { 706 class PendingFrameCreate : public base::RefCounted<PendingFrameCreate> {
705 public: 707 public:
706 PendingFrameCreate(int routing_id, 708 PendingFrameCreate(int routing_id,
707 mojom::FrameRequest frame_request, 709 mojom::FrameRequest frame_request,
708 mojom::FrameHostPtr frame_host); 710 mojom::FrameHostPtr frame_host);
709 711
710 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); } 712 mojom::FrameRequest TakeFrameRequest() { return std::move(frame_request_); }
711 mojom::FrameHostPtr TakeFrameHost() { 713 mojom::FrameHostPtr TakeFrameHost() {
712 frame_host_.set_connection_error_handler(base::Closure()); 714 frame_host_.set_connection_error_handler(base::Closure());
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 747 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
746 }; 748 };
747 749
748 #if defined(COMPILER_MSVC) 750 #if defined(COMPILER_MSVC)
749 #pragma warning(pop) 751 #pragma warning(pop)
750 #endif 752 #endif
751 753
752 } // namespace content 754 } // namespace content
753 755
754 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 756 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698