diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 07:33:27 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 07:33:27 +0000 |
commit | 2541d1ac91e59dc5eb26addb44e9d9496e10f9f7 (patch) | |
tree | 307abbdb543b9d89050c2382e56c0cdee3fca383 /cc/trees/layer_tree_host.h | |
parent | 43d9663e465af59f73efed267228a909d1832fc4 (diff) | |
download | chromium_src-2541d1ac91e59dc5eb26addb44e9d9496e10f9f7.zip chromium_src-2541d1ac91e59dc5eb26addb44e9d9496e10f9f7.tar.gz chromium_src-2541d1ac91e59dc5eb26addb44e9d9496e10f9f7.tar.bz2 |
Allow WebExternalTextureLayers to receive a bitmap along with a mailbox
When using the software renderer, texture layers can't be drawn from directly. Instead allow the WebExternalTextureLayer to request a bitmap that will be used to draw.
BUG=151713
Review URL: https://chromiumcodereview.appspot.com/17859002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210773 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees/layer_tree_host.h')
-rw-r--r-- | cc/trees/layer_tree_host.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h index 3d114d5..b838aa2 100644 --- a/cc/trees/layer_tree_host.h +++ b/cc/trees/layer_tree_host.h @@ -80,6 +80,7 @@ struct CC_EXPORT RendererCapabilities { int max_texture_size; bool avoid_pow2_textures; bool using_map_image; + bool using_shared_memory_resources; }; class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { @@ -255,6 +256,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { bool in_paint_layer_contents() const { return in_paint_layer_contents_; } + bool UsingSharedMemoryResources(); + protected: LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings); bool Initialize(scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); |