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

Unified Diff: cc/output/gl_renderer.cc

Issue 2245523003: GLRenderer should regularly call ResourcePool::CheckBusyResources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | cc/resources/resource_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index b757766dbef74e6a6592fcca4c1bff5fad22c4ee..0d91b275465c4e775a6ae62c2f62dd075d2ba183 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3805,6 +3805,10 @@ bool GLRenderer::IsContextLost() {
}
void GLRenderer::ScheduleCALayers(DrawingFrame* frame) {
+ if (overlay_resource_pool_) {
+ overlay_resource_pool_->CheckBusyResources();
+ }
+
scoped_refptr<CALayerOverlaySharedState> shared_state;
size_t copied_render_pass_count = 0;
for (const CALayerOverlay& ca_layer_overlay : frame->ca_layer_overlay_list) {
« no previous file with comments | « no previous file | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698