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_; |
} |