Chromium Code Reviews| Index: content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| diff --git a/content/browser/compositor/gpu_browser_compositor_output_surface.cc b/content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| index 4cdfbb78650dd035d8ff2b8659dc75090cd89159..f7c6abb7200b3cca4839e4bb5e046e1252ec78de 100644 |
| --- a/content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| +++ b/content/browser/compositor/gpu_browser_compositor_output_surface.cc |
| @@ -108,7 +108,7 @@ void GpuBrowserCompositorOutputSurface::SwapBuffers( |
| gfx::Size surface_size = frame.size; |
| if (reflector_) { |
| - if (frame.sub_buffer_rect) { |
| + if (frame.sub_buffer_rect && reflector_texture_->is_texture_defined()) { |
|
danakj
2017/04/03 19:30:56
Looks like this bool could live on this class here
|
| reflector_texture_->CopyTextureSubImage(*frame.sub_buffer_rect); |
| reflector_->OnSourcePostSubBuffer(*frame.sub_buffer_rect, surface_size); |
| } else { |