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

Unified Diff: cc/test/test_context_provider.h

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 2 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 | « cc/raster/tile_task_worker_pool_perftest.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_provider.h
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h
index 1b7a915c42bb8788b2a803e0872926ec0730a480..c9f8d6b66931c3cf4c6073fe5603b0b3506d9d40 100644
--- a/cc/test/test_context_provider.h
+++ b/cc/test/test_context_provider.h
@@ -42,6 +42,8 @@ class TestContextProvider : public ContextProvider {
base::Lock* GetLock() override;
void DeleteCachedResources() override;
void SetLostContextCallback(const LostContextCallback& cb) override;
+ void SetMemoryPolicyChangedCallback(
+ const MemoryPolicyChangedCallback& cb) override;
TestWebGraphicsContext3D* TestContext3d();
@@ -53,6 +55,8 @@ class TestContextProvider : public ContextProvider {
TestContextSupport* support() { return &support_; }
+ void SetMemoryAllocation(const ManagedMemoryPolicy& policy);
+
void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
protected:
@@ -74,6 +78,7 @@ class TestContextProvider : public ContextProvider {
base::Lock context_lock_;
LostContextCallback lost_context_callback_;
+ MemoryPolicyChangedCallback memory_policy_changed_callback_;
skia::RefPtr<class GrContext> gr_context_;
base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_;
« no previous file with comments | « cc/raster/tile_task_worker_pool_perftest.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698