Chromium Code Reviews| Index: cc/test/test_context_provider.cc |
| diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc |
| index ca7714d30cf9f4ca1b0eaaaeb7c117f7ddd180de..f0a4acb8d4772a6cf976ae69933f9ba19e58c572 100644 |
| --- a/cc/test/test_context_provider.cc |
| +++ b/cc/test/test_context_provider.cc |
| @@ -23,6 +23,16 @@ scoped_refptr<TestContextProvider> TestContextProvider::Create() { |
| } |
| // static |
| +scoped_refptr<TestContextProvider> TestContextProvider::CreateWorker() { |
| + scoped_refptr<TestContextProvider> worker_context_provider = |
| + Create(TestWebGraphicsContext3D::Create().Pass()); |
|
danakj
2015/08/26 18:48:50
you don't need .Pass() for a return value
reveman
2015/08/26 22:02:10
Done.
|
| + if (!worker_context_provider) |
| + return nullptr; |
| + worker_context_provider->bound_ = true; |
|
danakj
2015/08/26 18:48:50
Can you explain this with a comment? Prod code in
reveman
2015/08/26 22:02:10
Done.
|
| + return worker_context_provider; |
| +} |
| + |
| +// static |
| scoped_refptr<TestContextProvider> TestContextProvider::Create( |
| scoped_ptr<TestWebGraphicsContext3D> context) { |
| if (!context) |