Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: ui/gl/gl_surface_ozone.cc

Issue 1432963003: [Ozone] Extends the lifetime of VaapiWrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « ui/gl/gl_image_memory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698