| 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_;
|
|
|