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

Unified Diff: cc/test/test_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: fixes 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
Index: cc/test/test_context_support.h
diff --git a/cc/test/test_context_support.h b/cc/test/test_context_support.h
index bdc7620d406e94b7ddfa79119e8c2809fed16b25..247ecfc0be0c62a0d0f0c57ffc791dfa3ca12295 100644
--- a/cc/test/test_context_support.h
+++ b/cc/test/test_context_support.h
@@ -31,6 +31,7 @@ class TestContextSupport : public gpu::ContextSupport {
const base::Closure& callback) override;
void SignalQuery(uint32_t query, const base::Closure& callback) override;
void SetAggressivelyFreeResources(bool aggressively_free_resources) override;
+ void TrimResources() override;
void Swap() override;
void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
void CommitOverlayPlanes() override;
@@ -47,6 +48,12 @@ class TestContextSupport : public gpu::ContextSupport {
std::unique_ptr<ScopedVisibility> visibility) override;
bool AnyClientsVisible() const override;
+ std::unique_ptr<ScopedBusy> ClientBecameBusy() override;
+ void ClientBecameNotBusy(std::unique_ptr<ScopedBusy> busy) override;
+ void SetIdleCallback(const base::Closure& callback,
+ scoped_refptr<base::SingleThreadTaskRunner>
+ callback_task_runner) override;
+
void CallAllSyncPointCallbacks();
typedef base::Callback<void(int plane_z_order,

Powered by Google App Engine
This is Rietveld 408576698