Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1267)

Unified Diff: cc/resources/resource_provider.h

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: slightlylessstruct Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 76f09a1035fbafb3528c6876a1f853f9638d8237..1e7fb5172291e60d2c28429f4992c964df3b3167 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,7 @@ 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() const { return use_persistent_map_; }
size_t num_resources() const { return resources_.size(); }
// Checks whether a resource is in use by a consumer.
@@ -446,7 +448,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);
void Initialize();
private:
@@ -602,6 +605,7 @@ class CC_EXPORT ResourceProvider {
scoped_ptr<IdAllocator> buffer_id_allocator_;
bool use_sync_query_;
+ bool use_persistent_map_;
reveman 2015/05/28 05:07:25 There are 4 different ways of referring to this in
danakj 2015/05/28 18:54:47 I think I disagree. The workerpool isn't being tol
// Fence used for CopyResource if CHROMIUM_sync_query is not supported.
scoped_refptr<SynchronousFence> synchronous_fence_;

Powered by Google App Engine
This is Rietveld 408576698