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

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

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int64_t idle_notification_delay_in_ms) override; 189 int64_t idle_notification_delay_in_ms) override;
190 void UpdateHistograms(int sequence_number) override; 190 void UpdateHistograms(int sequence_number) override;
191 int PostTaskToAllWebWorkers(const base::Closure& closure) override; 191 int PostTaskToAllWebWorkers(const base::Closure& closure) override;
192 bool ResolveProxy(const GURL& url, std::string* proxy_list) override; 192 bool ResolveProxy(const GURL& url, std::string* proxy_list) override;
193 base::WaitableEvent* GetShutdownEvent() override; 193 base::WaitableEvent* GetShutdownEvent() override;
194 ServiceRegistry* GetServiceRegistry() override; 194 ServiceRegistry* GetServiceRegistry() override;
195 195
196 // CompositorDependencies implementation. 196 // CompositorDependencies implementation.
197 bool IsGpuRasterizationForced() override; 197 bool IsGpuRasterizationForced() override;
198 bool IsGpuRasterizationEnabled() override; 198 bool IsGpuRasterizationEnabled() override;
199 bool IsAsyncWorkerContextEnabled() override;
199 int GetGpuRasterizationMSAASampleCount() override; 200 int GetGpuRasterizationMSAASampleCount() override;
200 bool IsLcdTextEnabled() override; 201 bool IsLcdTextEnabled() override;
201 bool IsDistanceFieldTextEnabled() override; 202 bool IsDistanceFieldTextEnabled() override;
202 bool IsZeroCopyEnabled() override; 203 bool IsZeroCopyEnabled() override;
203 bool IsPartialRasterEnabled() override; 204 bool IsPartialRasterEnabled() override;
204 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; 205 bool IsGpuMemoryBufferCompositorResourcesEnabled() override;
205 bool IsElasticOverscrollEnabled() override; 206 bool IsElasticOverscrollEnabled() override;
206 std::vector<unsigned> GetImageTextureTargets() override; 207 std::vector<unsigned> GetImageTextureTargets() override;
207 scoped_refptr<base::SingleThreadTaskRunner> 208 scoped_refptr<base::SingleThreadTaskRunner>
208 GetCompositorMainThreadTaskRunner() override; 209 GetCompositorMainThreadTaskRunner() override;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 #endif 648 #endif
648 649
649 std::unique_ptr<MemoryObserver> memory_observer_; 650 std::unique_ptr<MemoryObserver> memory_observer_;
650 651
651 scoped_refptr<base::SingleThreadTaskRunner> 652 scoped_refptr<base::SingleThreadTaskRunner>
652 main_thread_compositor_task_runner_; 653 main_thread_compositor_task_runner_;
653 654
654 // Compositor settings. 655 // Compositor settings.
655 bool is_gpu_rasterization_enabled_; 656 bool is_gpu_rasterization_enabled_;
656 bool is_gpu_rasterization_forced_; 657 bool is_gpu_rasterization_forced_;
658 bool is_async_worker_context_enabled_;
657 int gpu_rasterization_msaa_sample_count_; 659 int gpu_rasterization_msaa_sample_count_;
658 bool is_lcd_text_enabled_; 660 bool is_lcd_text_enabled_;
659 bool is_distance_field_text_enabled_; 661 bool is_distance_field_text_enabled_;
660 bool is_zero_copy_enabled_; 662 bool is_zero_copy_enabled_;
661 bool is_gpu_memory_buffer_compositor_resources_enabled_; 663 bool is_gpu_memory_buffer_compositor_resources_enabled_;
662 bool is_partial_raster_enabled_; 664 bool is_partial_raster_enabled_;
663 bool is_elastic_overscroll_enabled_; 665 bool is_elastic_overscroll_enabled_;
664 std::vector<unsigned> use_image_texture_targets_; 666 std::vector<unsigned> use_image_texture_targets_;
665 std::vector<unsigned> use_video_frame_image_texture_targets_; 667 std::vector<unsigned> use_video_frame_image_texture_targets_;
666 bool are_image_decode_tasks_enabled_; 668 bool are_image_decode_tasks_enabled_;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 704 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
703 }; 705 };
704 706
705 #if defined(COMPILER_MSVC) 707 #if defined(COMPILER_MSVC)
706 #pragma warning(pop) 708 #pragma warning(pop)
707 #endif 709 #endif
708 710
709 } // namespace content 711 } // namespace content
710 712
711 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 713 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698