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

Unified Diff: cc/resources/resource_provider.h

Issue 398543004: cc: Avoid issuing COMMANDS_COMPLETED queries unless necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: issue BeginQueryEXT before first drawing command Created 6 years, 5 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
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 2f28ef47596b9d4a838213c8a475a351f5e99530..e44b75e87649912d184477cce6b70879d9adc03a 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -301,6 +301,8 @@ class CC_EXPORT ResourceProvider {
class Fence : public base::RefCounted<Fence> {
public:
Fence() {}
+
+ virtual void Set() = 0;
virtual bool HasPassed() = 0;
protected:
@@ -356,7 +358,7 @@ class CC_EXPORT ResourceProvider {
void SetReadLockFence(Fence* fence) { current_read_lock_fence_ = fence; }
// Enable read lock fences for a specific resource.
- void EnableReadLockFences(ResourceProvider::ResourceId id, bool enable);
+ void EnableReadLockFences(ResourceProvider::ResourceId id);
// Indicates if we can currently lock this resource for write.
bool CanLockForWrite(ResourceId id);
@@ -418,7 +420,7 @@ class CC_EXPORT ResourceProvider {
bool pending_set_pixels : 1;
bool set_pixels_completion_forced : 1;
bool allocated : 1;
- bool enable_read_lock_fences : 1;
+ bool read_lock_fences_enabled : 1;
bool has_shared_bitmap_id : 1;
bool allow_overlay : 1;
scoped_refptr<Fence> read_lock_fence;
« no previous file with comments | « cc/resources/pixel_buffer_raster_worker_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698