diff options
author | ccameron <ccameron@chromium.org> | 2015-11-03 12:14:31 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-03 20:15:50 +0000 |
commit | c7fcd13e9907d4a663d5bc47c1c9ff1701f0b068 (patch) | |
tree | a755ad06f5dd88ab2daeefc17d6cd71daf97e0c2 /cc/output | |
parent | 1ae3c3a3b26dc42489c0209bbf8ab12738094857 (diff) | |
download | chromium_src-c7fcd13e9907d4a663d5bc47c1c9ff1701f0b068.zip chromium_src-c7fcd13e9907d4a663d5bc47c1c9ff1701f0b068.tar.gz chromium_src-c7fcd13e9907d4a663d5bc47c1c9ff1701f0b068.tar.bz2 |
cc: Add flag to specify to ResourceProvider to always use GMBs
Add a command line switch (similar to zero-copy) to specify that all
resources allocated by the cc::ResourceProvider should use GMBs and
have GLImages attached to them.
BUG=533677
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1425533006
Cr-Commit-Position: refs/heads/master@{#357604}
Diffstat (limited to 'cc/output')
-rw-r--r-- | cc/output/renderer_settings.cc | 3 | ||||
-rw-r--r-- | cc/output/renderer_settings.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/cc/output/renderer_settings.cc b/cc/output/renderer_settings.cc index db961c9..dce7e24 100644 --- a/cc/output/renderer_settings.cc +++ b/cc/output/renderer_settings.cc @@ -21,7 +21,8 @@ RendererSettings::RendererSettings() refresh_rate(60.0), highp_threshold_min(0), use_rgba_4444_textures(false), - texture_id_allocation_chunk_size(64) {} + texture_id_allocation_chunk_size(64), + use_gpu_memory_buffer_resources(false) {} RendererSettings::~RendererSettings() { } diff --git a/cc/output/renderer_settings.h b/cc/output/renderer_settings.h index ce0a470..8022800 100644 --- a/cc/output/renderer_settings.h +++ b/cc/output/renderer_settings.h @@ -26,6 +26,7 @@ class CC_EXPORT RendererSettings { int highp_threshold_min; bool use_rgba_4444_textures; size_t texture_id_allocation_chunk_size; + bool use_gpu_memory_buffer_resources; }; } // namespace cc |