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

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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback + UT refactoring Created 5 years, 2 months 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 base::WaitableEvent* GetShutdownEvent() override; 185 base::WaitableEvent* GetShutdownEvent() override;
186 ServiceRegistry* GetServiceRegistry() override; 186 ServiceRegistry* GetServiceRegistry() override;
187 187
188 // CompositorDependencies implementation. 188 // CompositorDependencies implementation.
189 bool IsGpuRasterizationForced() override; 189 bool IsGpuRasterizationForced() override;
190 bool IsGpuRasterizationEnabled() override; 190 bool IsGpuRasterizationEnabled() override;
191 int GetGpuRasterizationMSAASampleCount() override; 191 int GetGpuRasterizationMSAASampleCount() override;
192 bool IsLcdTextEnabled() override; 192 bool IsLcdTextEnabled() override;
193 bool IsDistanceFieldTextEnabled() override; 193 bool IsDistanceFieldTextEnabled() override;
194 bool IsZeroCopyEnabled() override; 194 bool IsZeroCopyEnabled() override;
195 bool IsPersistentGpuMemoryBufferEnabled() override; 195 bool IsPartialRasterEnabled() override;
196 bool IsElasticOverscrollEnabled() override; 196 bool IsElasticOverscrollEnabled() override;
197 std::vector<unsigned> GetImageTextureTargets() override; 197 std::vector<unsigned> GetImageTextureTargets() override;
198 scoped_refptr<base::SingleThreadTaskRunner> 198 scoped_refptr<base::SingleThreadTaskRunner>
199 GetCompositorMainThreadTaskRunner() override; 199 GetCompositorMainThreadTaskRunner() override;
200 scoped_refptr<base::SingleThreadTaskRunner> 200 scoped_refptr<base::SingleThreadTaskRunner>
201 GetCompositorImplThreadTaskRunner() override; 201 GetCompositorImplThreadTaskRunner() override;
202 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 202 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
203 scheduler::RendererScheduler* GetRendererScheduler() override; 203 scheduler::RendererScheduler* GetRendererScheduler() override;
204 cc::ContextProvider* GetSharedMainThreadContextProvider() override; 204 cc::ContextProvider* GetSharedMainThreadContextProvider() override;
205 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 205 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 main_thread_compositor_task_runner_; 616 main_thread_compositor_task_runner_;
617 617
618 // Compositor settings. 618 // Compositor settings.
619 bool is_gpu_rasterization_enabled_; 619 bool is_gpu_rasterization_enabled_;
620 bool is_gpu_rasterization_forced_; 620 bool is_gpu_rasterization_forced_;
621 int gpu_rasterization_msaa_sample_count_; 621 int gpu_rasterization_msaa_sample_count_;
622 bool is_lcd_text_enabled_; 622 bool is_lcd_text_enabled_;
623 bool is_distance_field_text_enabled_; 623 bool is_distance_field_text_enabled_;
624 bool is_zero_copy_enabled_; 624 bool is_zero_copy_enabled_;
625 bool is_one_copy_enabled_; 625 bool is_one_copy_enabled_;
626 bool is_persistent_gpu_memory_buffer_enabled_; 626 bool is_partial_raster_enabled_;
627 bool is_elastic_overscroll_enabled_; 627 bool is_elastic_overscroll_enabled_;
628 std::vector<unsigned> use_image_texture_targets_; 628 std::vector<unsigned> use_image_texture_targets_;
629 bool are_image_decode_tasks_enabled_; 629 bool are_image_decode_tasks_enabled_;
630 bool is_threaded_animation_enabled_; 630 bool is_threaded_animation_enabled_;
631 631
632 class PendingRenderFrameConnect 632 class PendingRenderFrameConnect
633 : public base::RefCounted<PendingRenderFrameConnect> { 633 : public base::RefCounted<PendingRenderFrameConnect> {
634 public: 634 public:
635 PendingRenderFrameConnect( 635 PendingRenderFrameConnect(
636 int routing_id, 636 int routing_id,
(...skipping 26 matching lines...) Expand all
663 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 663 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
664 }; 664 };
665 665
666 #if defined(COMPILER_MSVC) 666 #if defined(COMPILER_MSVC)
667 #pragma warning(pop) 667 #pragma warning(pop)
668 #endif 668 #endif
669 669
670 } // namespace content 670 } // namespace content
671 671
672 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 672 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698