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

Unified Diff: ui/gl/gl_image_egl.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
Index: ui/gl/gl_image_egl.cc
diff --git a/ui/gl/gl_image_egl.cc b/ui/gl/gl_image_egl.cc
index 91800e2d90de6d108c392a0fb73a2c919ea52d21..394dacaafb4653b58b2835dafc97959a53cb4966 100644
--- a/ui/gl/gl_image_egl.cc
+++ b/ui/gl/gl_image_egl.cc
@@ -48,6 +48,10 @@ void GLImageEGL::Destroy(bool have_context) {
}
}
+bool GLImageEGL::IsValid() {
+ return egl_image_ != EGL_NO_IMAGE_KHR;
+}
+
gfx::Size GLImageEGL::GetSize() {
return size_;
}
« no previous file with comments | « ui/gl/gl_image_egl.h ('k') | ui/gl/gl_image_memory.h » ('j') | ui/gl/gl_surface_ozone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698