From c7fcd13e9907d4a663d5bc47c1c9ff1701f0b068 Mon Sep 17 00:00:00 2001 From: ccameron Date: Tue, 3 Nov 2015 12:14:31 -0800 Subject: 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} --- cc/output/renderer_settings.cc | 3 ++- cc/output/renderer_settings.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'cc/output') 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 -- cgit v1.1