Chromium Code Reviews| Index: cc/output/gl_renderer.cc |
| diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc |
| index 10985875d8c36122453ee585c8d6dc85bad36621..2dd0d1a3eca5d1fb9c0087759af89d4638ac8619 100644 |
| --- a/cc/output/gl_renderer.cc |
| +++ b/cc/output/gl_renderer.cc |
| @@ -163,7 +163,10 @@ class GLRenderer::ScopedUseGrContext { |
| public: |
| static scoped_ptr<ScopedUseGrContext> Create(GLRenderer* renderer, |
| DrawingFrame* frame) { |
| - return make_scoped_ptr(new ScopedUseGrContext(renderer, frame)); |
| + // GrContext for filters is created lazily, and may fail. |
|
danakj
2015/05/12 23:40:42
Can you file a bug about making GrContext::Create
|
| + if (renderer->output_surface_->context_provider()->GrContext()) |
| + return make_scoped_ptr(new ScopedUseGrContext(renderer, frame)); |
| + return nullptr; |
| } |
| ~ScopedUseGrContext() { |