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

Unified Diff: gpu/command_buffer/service/program_manager.h

Issue 2372593003: Iterative cleanup for GL programs in GPU process (Closed)
Patch Set: fix build Created 4 years, 3 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 | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/program_manager.h
diff --git a/gpu/command_buffer/service/program_manager.h b/gpu/command_buffer/service/program_manager.h
index 36bc94e84d1e7f4ce0f7dcd4f9cc6339aeb2471c..67e580f0887e0c847b4f65e855b8e41045401c7d 100644
--- a/gpu/command_buffer/service/program_manager.h
+++ b/gpu/command_buffer/service/program_manager.h
@@ -604,6 +604,11 @@ class GPU_EXPORT ProgramManager {
// Must call before destruction.
void Destroy(bool have_context);
+ // Can be called before Destroy to perform expensive cleanup. Will run until
+ // currently possible cleanup is performed, or timeout is reached. Returns
+ // true if all possible cleanup has been performed.
+ bool PreDestroyWithTimeout(bool have_context, const base::TimeTicks& timeout);
+
// Creates a new program.
Program* CreateProgram(GLuint client_id, GLuint service_id);
« no previous file with comments | « no previous file | gpu/command_buffer/service/program_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698