| Index: cc/resources/resource_provider.h
|
| diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
|
| index 76f09a1035fbafb3528c6876a1f853f9638d8237..fa858b5b6ba4b0d8cb9a55d45fe194a47e1cb298 100644
|
| --- a/cc/resources/resource_provider.h
|
| +++ b/cc/resources/resource_provider.h
|
| @@ -85,7 +85,8 @@ class CC_EXPORT ResourceProvider {
|
| BlockingTaskRunner* blocking_main_thread_task_runner,
|
| int highp_threshold_min,
|
| bool use_rgba_4444_texture_format,
|
| - size_t id_allocation_chunk_size);
|
| + size_t id_allocation_chunk_size,
|
| + bool use_persistent_map_for_gpu_memory_buffers);
|
| virtual ~ResourceProvider();
|
|
|
| void DidLoseOutputSurface() { lost_output_surface_ = true; }
|
| @@ -97,6 +98,9 @@ class CC_EXPORT ResourceProvider {
|
| ResourceFormat best_texture_format() const { return best_texture_format_; }
|
| ResourceFormat yuv_resource_format() const { return yuv_resource_format_; }
|
| bool use_sync_query() const { return use_sync_query_; }
|
| + bool use_persistent_map_for_gpu_memory_buffers() const {
|
| + return use_persistent_map_for_gpu_memory_buffers_;
|
| + }
|
| size_t num_resources() const { return resources_.size(); }
|
|
|
| // Checks whether a resource is in use by a consumer.
|
| @@ -446,7 +450,8 @@ class CC_EXPORT ResourceProvider {
|
| BlockingTaskRunner* blocking_main_thread_task_runner,
|
| int highp_threshold_min,
|
| bool use_rgba_4444_texture_format,
|
| - size_t id_allocation_chunk_size);
|
| + size_t id_allocation_chunk_size,
|
| + bool use_persistent_map_for_gpu_memory_buffers);
|
| void Initialize();
|
|
|
| private:
|
| @@ -602,6 +607,7 @@ class CC_EXPORT ResourceProvider {
|
| scoped_ptr<IdAllocator> buffer_id_allocator_;
|
|
|
| bool use_sync_query_;
|
| + bool use_persistent_map_for_gpu_memory_buffers_;
|
| // Fence used for CopyResource if CHROMIUM_sync_query is not supported.
|
| scoped_refptr<SynchronousFence> synchronous_fence_;
|
|
|
|
|