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

Unified Diff: cc/resources/resource_provider.h

Issue 2607033002: Flush after ResourcePool deletions complete (Closed)
Patch Set: fix |resource_provider_| check Created 3 years, 11 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/resource_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 a9834caca3f919b1029f06495d2d65644912fbec..7f265b79a6c400ac100313b85b8784eb9b3b2158 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -150,6 +150,10 @@ class CC_EXPORT ResourceProvider
bool read_lock_fences_enabled);
void DeleteResource(ResourceId id);
+ // In the case of GPU resources, we may need to flush the GL context to ensure
+ // that texture deletions are seen in a timely fashion. This function should
+ // be called after texture deletions that may happen during an idle state.
+ void FlushPendingDeletions() const;
// Update pixels from image, copying source_rect (in image) to dest_offset (in
// the resource).
« no previous file with comments | « cc/resources/resource_pool.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698