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

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

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move flags to RenderThreadImpl Created 6 years, 9 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 | Annotate | Revision Log
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 InputHandlerManager* input_handler_manager() const { 189 InputHandlerManager* input_handler_manager() const {
190 return input_handler_manager_.get(); 190 return input_handler_manager_.get();
191 } 191 }
192 192
193 // Will be NULL if threaded compositing has not been enabled. 193 // Will be NULL if threaded compositing has not been enabled.
194 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const { 194 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy() const {
195 return compositor_message_loop_proxy_; 195 return compositor_message_loop_proxy_;
196 } 196 }
197 197
198 bool is_gpu_rasterization_enabled() const {
199 return is_gpu_rasterization_enabled_;
200 }
201
202 bool is_hybrid_rasterization_enabled() const {
203 return is_hybrid_rasterization_enabled_;
204 }
205
206 bool is_impl_side_painting_enabled() const {
207 return is_impl_side_painting_enabled_;
208 }
209
210 bool is_lcd_text_enabled() const { return is_lcd_text_enabled_; }
211
212 bool is_map_image_enabled() const { return is_map_image_enabled_; }
213
198 AppCacheDispatcher* appcache_dispatcher() const { 214 AppCacheDispatcher* appcache_dispatcher() const {
199 return appcache_dispatcher_.get(); 215 return appcache_dispatcher_.get();
200 } 216 }
201 217
202 DomStorageDispatcher* dom_storage_dispatcher() const { 218 DomStorageDispatcher* dom_storage_dispatcher() const {
203 return dom_storage_dispatcher_.get(); 219 return dom_storage_dispatcher_.get();
204 } 220 }
205 221
206 EmbeddedWorkerDispatcher* embedded_worker_dispatcher() const { 222 EmbeddedWorkerDispatcher* embedded_worker_dispatcher() const {
207 return embedded_worker_dispatcher_.get(); 223 return embedded_worker_dispatcher_.get();
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 513
498 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 514 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
499 515
500 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 516 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
501 517
502 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from 518 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
503 // multiple threads. Current allocation mechanism for IOSurface 519 // multiple threads. Current allocation mechanism for IOSurface
504 // backed GpuMemoryBuffers prevent this. crbug.com/325045 520 // backed GpuMemoryBuffers prevent this. crbug.com/325045
505 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 521 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
506 522
523 // Compositor settings
524 bool is_gpu_rasterization_enabled_;
525 bool is_hybrid_rasterization_enabled_;
526 bool is_impl_side_painting_enabled_;
527 bool is_lcd_text_enabled_;
528 bool is_map_image_enabled_;
529
507 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 530 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
508 }; 531 };
509 532
510 } // namespace content 533 } // namespace content
511 534
512 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 535 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698