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

Unified Diff: gpu/command_buffer/client/context_support.h

Issue 2257533006: Free worker context resources on idle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-cleanup2
Patch Set: rebase 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 | « content/renderer/render_thread_impl.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/context_support.h
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h
index 543025d81045b94737446e3bd0c8b457a511f2f1..e138ce0e85dfd9e0edd9e541b3955a94e513aa80 100644
--- a/gpu/command_buffer/client/context_support.h
+++ b/gpu/command_buffer/client/context_support.h
@@ -59,6 +59,13 @@ class ContextSupport {
std::unique_ptr<ScopedVisibility> visibility) = 0;
virtual bool AnyClientsVisible() const = 0;
+ class ScopedBusy {};
+ virtual std::unique_ptr<ScopedBusy> ClientBecameBusy() = 0;
+ virtual void ClientBecameNotBusy(std::unique_ptr<ScopedBusy> busy) = 0;
+
+ // A callback which will be invoked when the context is considered idle.
+ virtual void SetIdleCallback(const base::Closure& callback) = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698