| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 ServiceRegistry* GetServiceRegistry() override; | 187 ServiceRegistry* GetServiceRegistry() override; |
| 188 | 188 |
| 189 // CompositorDependencies implementation. | 189 // CompositorDependencies implementation. |
| 190 bool IsGpuRasterizationForced() override; | 190 bool IsGpuRasterizationForced() override; |
| 191 bool IsGpuRasterizationEnabled() override; | 191 bool IsGpuRasterizationEnabled() override; |
| 192 int GetGpuRasterizationMSAASampleCount() override; | 192 int GetGpuRasterizationMSAASampleCount() override; |
| 193 bool IsLcdTextEnabled() override; | 193 bool IsLcdTextEnabled() override; |
| 194 bool IsDistanceFieldTextEnabled() override; | 194 bool IsDistanceFieldTextEnabled() override; |
| 195 bool IsZeroCopyEnabled() override; | 195 bool IsZeroCopyEnabled() override; |
| 196 bool IsPartialRasterEnabled() override; | 196 bool IsPartialRasterEnabled() override; |
| 197 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; |
| 197 bool IsElasticOverscrollEnabled() override; | 198 bool IsElasticOverscrollEnabled() override; |
| 198 std::vector<unsigned> GetImageTextureTargets() override; | 199 std::vector<unsigned> GetImageTextureTargets() override; |
| 199 scoped_refptr<base::SingleThreadTaskRunner> | 200 scoped_refptr<base::SingleThreadTaskRunner> |
| 200 GetCompositorMainThreadTaskRunner() override; | 201 GetCompositorMainThreadTaskRunner() override; |
| 201 scoped_refptr<base::SingleThreadTaskRunner> | 202 scoped_refptr<base::SingleThreadTaskRunner> |
| 202 GetCompositorImplThreadTaskRunner() override; | 203 GetCompositorImplThreadTaskRunner() override; |
| 203 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | 204 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; |
| 204 scheduler::RendererScheduler* GetRendererScheduler() override; | 205 scheduler::RendererScheduler* GetRendererScheduler() override; |
| 205 cc::ContextProvider* GetSharedMainThreadContextProvider() override; | 206 cc::ContextProvider* GetSharedMainThreadContextProvider() override; |
| 206 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | 207 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 main_thread_compositor_task_runner_; | 628 main_thread_compositor_task_runner_; |
| 628 | 629 |
| 629 // Compositor settings. | 630 // Compositor settings. |
| 630 bool is_gpu_rasterization_enabled_; | 631 bool is_gpu_rasterization_enabled_; |
| 631 bool is_gpu_rasterization_forced_; | 632 bool is_gpu_rasterization_forced_; |
| 632 int gpu_rasterization_msaa_sample_count_; | 633 int gpu_rasterization_msaa_sample_count_; |
| 633 bool is_lcd_text_enabled_; | 634 bool is_lcd_text_enabled_; |
| 634 bool is_distance_field_text_enabled_; | 635 bool is_distance_field_text_enabled_; |
| 635 bool is_zero_copy_enabled_; | 636 bool is_zero_copy_enabled_; |
| 636 bool is_one_copy_enabled_; | 637 bool is_one_copy_enabled_; |
| 638 bool is_gpu_memory_buffer_compositor_resources_enabled_; |
| 637 bool is_partial_raster_enabled_; | 639 bool is_partial_raster_enabled_; |
| 638 bool is_elastic_overscroll_enabled_; | 640 bool is_elastic_overscroll_enabled_; |
| 639 std::vector<unsigned> use_image_texture_targets_; | 641 std::vector<unsigned> use_image_texture_targets_; |
| 640 bool are_image_decode_tasks_enabled_; | 642 bool are_image_decode_tasks_enabled_; |
| 641 bool is_threaded_animation_enabled_; | 643 bool is_threaded_animation_enabled_; |
| 642 | 644 |
| 643 class PendingRenderFrameConnect | 645 class PendingRenderFrameConnect |
| 644 : public base::RefCounted<PendingRenderFrameConnect> { | 646 : public base::RefCounted<PendingRenderFrameConnect> { |
| 645 public: | 647 public: |
| 646 PendingRenderFrameConnect( | 648 PendingRenderFrameConnect( |
| (...skipping 27 matching lines...) Expand all Loading... |
| 674 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 676 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 675 }; | 677 }; |
| 676 | 678 |
| 677 #if defined(COMPILER_MSVC) | 679 #if defined(COMPILER_MSVC) |
| 678 #pragma warning(pop) | 680 #pragma warning(pop) |
| 679 #endif | 681 #endif |
| 680 | 682 |
| 681 } // namespace content | 683 } // namespace content |
| 682 | 684 |
| 683 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 685 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |