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

Unified Diff: cc/output/gl_renderer.cc

Issue 2916263002: Call glReleaseShaderCompiler when GLRenderer loses visibility. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | 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 201bf720bed11aa7f42034ba12f3029b7423e811..5d5afdf1b2edbcc668e8818cb7ddcdfe0cd748c9 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -439,6 +439,7 @@ void GLRenderer::DidChangeVisibility() {
TRACE_EVENT0("cc", "GLRenderer::DidChangeVisibility dropping resources");
ReleaseRenderPassTextures();
output_surface_->DiscardBackbuffer();
+ gl_->ReleaseShaderCompiler();
}
PrepareGeometry(NO_BINDING);
@@ -3096,6 +3097,7 @@ const gfx::ColorTransform* GLRenderer::GetColorTransform(
void GLRenderer::CleanupSharedObjects() {
shared_geometry_ = nullptr;
+ gl_->ReleaseShaderCompiler();
for (auto& iter : program_cache_)
iter.second->Cleanup(gl_);
program_cache_.clear();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698