Index: ui/gl/gl_surface_ozone.cc |
diff --git a/ui/gl/gl_surface_ozone.cc b/ui/gl/gl_surface_ozone.cc |
index c4b7642fa70705857d2b6483ba63b169764fbb2f..a910480f9ec06a5f7e951e7e2c5ba43b6c19e062 100644 |
--- a/ui/gl/gl_surface_ozone.cc |
+++ b/ui/gl/gl_surface_ozone.cc |
@@ -226,8 +226,10 @@ GLSurfaceOzoneSurfaceless::Overlay::Overlay(int z_order, |
bool GLSurfaceOzoneSurfaceless::Overlay::ScheduleOverlayPlane( |
reveman
2015/11/12 14:58:26
why is this called after the image has been destro
william.xie1
2015/11/12 15:37:43
the image is in the unsubmitted_frames_, and will
spang
2015/11/12 15:47:52
If it was totally valid when scheduled, we can't j
kalyank
2015/11/12 16:36:52
When Media pipeline is destroyed, callback for pro
|
gfx::AcceleratedWidget widget) const { |
- return image->ScheduleOverlayPlane(widget, z_order, transform, bounds_rect, |
- crop_rect); |
+ if (image->IsValid()) |
+ return image->ScheduleOverlayPlane(widget, z_order, transform, bounds_rect, |
+ crop_rect); |
+ return true; |
} |
GLSurfaceOzoneSurfaceless::PendingFrame::PendingFrame() : ready(false) {} |