summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_thread_impl.h
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 06:05:16 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 06:05:16 +0000
commit2cccfef9bf75884602b8203b7c1af5b7e20c2b7c (patch)
tree6219ca8a52a6fcd7e5fa0aadbb1346e6de0d7709 /content/renderer/render_thread_impl.h
parent4f162cab4d586d582604a5db49dbf392a12fed33 (diff)
downloadchromium_src-2cccfef9bf75884602b8203b7c1af5b7e20c2b7c.zip
chromium_src-2cccfef9bf75884602b8203b7c1af5b7e20c2b7c.tar.gz
chromium_src-2cccfef9bf75884602b8203b7c1af5b7e20c2b7c.tar.bz2
cc: Add initial GPU-to-GPU copy rasterizer implementation.
This adds a derived RasterWorkerPool class that use a smaller resource pool for staging and initialize tile resources by copying the contents of a staging resource to a tile resource using CHROMIUM_copy_texture. Zero-copy is still used by default when map-image rasterizer is enabled using --enable-map-image. GPU-to-GPU copy rasterizer is used when --disable-zero-copy switch is provided in combination with --enable-map-image. This zero-copy setting is also added to about:flags. BUG=269808 TBR=sky Review URL: https://codereview.chromium.org/236313006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267455 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_thread_impl.h')
-rw-r--r--content/renderer/render_thread_impl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/content/renderer/render_thread_impl.h b/content/renderer/render_thread_impl.h
index fccaa70..5695270 100644
--- a/content/renderer/render_thread_impl.h
+++ b/content/renderer/render_thread_impl.h
@@ -216,7 +216,9 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
bool is_lcd_text_enabled() const { return is_lcd_text_enabled_; }
- bool is_map_image_enabled() const { return is_map_image_enabled_; }
+ bool is_zero_copy_enabled() const { return is_zero_copy_enabled_; }
+
+ bool is_one_copy_enabled() const { return is_one_copy_enabled_; }
AppCacheDispatcher* appcache_dispatcher() const {
return appcache_dispatcher_.get();
@@ -543,7 +545,8 @@ class CONTENT_EXPORT RenderThreadImpl : public RenderThread,
bool is_impl_side_painting_enabled_;
bool is_low_res_tiling_enabled_;
bool is_lcd_text_enabled_;
- bool is_map_image_enabled_;
+ bool is_zero_copy_enabled_;
+ bool is_one_copy_enabled_;
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};