diff options
author | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 06:04:14 +0000 |
---|---|---|
committer | ajuma@chromium.org <ajuma@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-11 06:04:14 +0000 |
commit | a23530dae09f5788647484b08cd5461928ffd994 (patch) | |
tree | ff661d6f80b9d626f9b6a78da07992257843cc80 /content/renderer/render_thread_impl.h | |
parent | 1acec0ced6bf1beeb39639059f4820a4bff098e3 (diff) | |
download | chromium_src-a23530dae09f5788647484b08cd5461928ffd994.zip chromium_src-a23530dae09f5788647484b08cd5461928ffd994.tar.gz chromium_src-a23530dae09f5788647484b08cd5461928ffd994.tar.bz2 |
Define a --force-gpu-rasterization flag
This flag forces gpu rasterization for all layers (that is, it behaves the
way --enable-gpu-rasterization behaved previously).
--enable-gpu-rasterization now enables gpu rasterization only on layers
that have a GPU rasterization hint. Since this hint will be added in a
later CL, this flag is currently a no-op.
BUG=329722
Review URL: https://codereview.chromium.org/189883009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256143 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r-- | content/renderer/render_thread_impl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h index ca22017..dd204aa 100644 --- a/content/renderer/render_thread_impl.h +++ b/content/renderer/render_thread_impl.h @@ -195,6 +195,22 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, return compositor_message_loop_proxy_; } + bool is_gpu_rasterization_enabled() const { + return is_gpu_rasterization_enabled_; + } + + bool is_gpu_rasterization_forced() const { + return is_gpu_rasterization_forced_; + } + + bool is_impl_side_painting_enabled() const { + return is_impl_side_painting_enabled_; + } + + bool is_lcd_text_enabled() const { return is_lcd_text_enabled_; } + + bool is_map_image_enabled() const { return is_map_image_enabled_; } + AppCacheDispatcher* appcache_dispatcher() const { return appcache_dispatcher_.get(); } @@ -504,6 +520,13 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread, // backed GpuMemoryBuffers prevent this. crbug.com/325045 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; + // Compositor settings + bool is_gpu_rasterization_enabled_; + bool is_gpu_rasterization_forced_; + bool is_impl_side_painting_enabled_; + bool is_lcd_text_enabled_; + bool is_map_image_enabled_; + DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); }; |