| Index: cc/debug/test_context_provider.cc
|
| diff --git a/cc/debug/test_context_provider.cc b/cc/debug/test_context_provider.cc
|
| index 55fc74fead1a866b35952056d50006c8aa9c88ae..613ef53b9f830b1d1b73e4df7cb26094450e165a 100644
|
| --- a/cc/debug/test_context_provider.cc
|
| +++ b/cc/debug/test_context_provider.cc
|
| @@ -175,6 +175,21 @@ void TestContextProvider::OnSwapBuffersComplete() {
|
| swap_buffers_complete_callback_.Run();
|
| }
|
|
|
| +TestWebGraphicsContext3D* TestContextProvider::TestContext3d() {
|
| + DCHECK(context3d_);
|
| + DCHECK(bound_);
|
| + DCHECK(context_thread_checker_.CalledOnValidThread());
|
| +
|
| + return context3d_.get();
|
| +}
|
| +
|
| +TestWebGraphicsContext3D* TestContextProvider::UnboundTestContext3d() {
|
| + DCHECK(context3d_);
|
| + DCHECK(context_thread_checker_.CalledOnValidThread());
|
| +
|
| + return context3d_.get();
|
| +}
|
| +
|
| void TestContextProvider::SetMemoryAllocation(
|
| const ManagedMemoryPolicy& policy,
|
| bool discard_backbuffer_when_not_visible) {
|
|
|