| Index: cc/debug/test_context_provider.h
|
| diff --git a/cc/debug/test_context_provider.h b/cc/debug/test_context_provider.h
|
| index 3e677049e6f9fb2dd1697b56f49861207b7b8a9e..af3e599157edfc36a4ad5cea06aa56e2beb1fe93 100644
|
| --- a/cc/debug/test_context_provider.h
|
| +++ b/cc/debug/test_context_provider.h
|
| @@ -40,7 +40,13 @@ class CC_EXPORT TestContextProvider
|
| virtual void SetMemoryPolicyChangedCallback(
|
| const MemoryPolicyChangedCallback& cb) OVERRIDE;
|
|
|
| - TestWebGraphicsContext3D* TestContext3d() { return context3d_.get(); }
|
| + TestWebGraphicsContext3D* TestContext3d();
|
| +
|
| + // This returns the TestWebGraphicsContext3D but is valid to call
|
| + // before the context is bound to a thread. This is needed to set up
|
| + // state on the test context before binding. Don't call
|
| + // makeContextCurrent on the context returned from this method.
|
| + TestWebGraphicsContext3D* UnboundTestContext3d();
|
|
|
| void SetMemoryAllocation(const ManagedMemoryPolicy& policy,
|
| bool discard_backbuffer_when_not_visible);
|
|
|