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

Unified Diff: ui/gl/gl_image_memory.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_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_;
}
« no previous file with comments | « ui/gl/gl_image_memory.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | ui/gl/gl_surface_ozone.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698