Index: ui/gl/gl_image_memory.cc |
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc |
index 03391ba2a60493cc964ca83c0c4aff89b1aebcb2..429b5461f639134272595524946616a9490183ce 100644 |
--- a/ui/gl/gl_image_memory.cc |
+++ b/ui/gl/gl_image_memory.cc |
@@ -271,6 +271,10 @@ void GLImageMemory::Destroy(bool have_context) { |
memory_ = nullptr; |
} |
+bool GLImageMemory::IsValid() { |
+ return memory_ != nullptr; |
+} |
+ |
gfx::Size GLImageMemory::GetSize() { |
return size_; |
} |