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

Unified Diff: ui/gl/android/scoped_java_surface.h

Issue 1398703003: Fix an issue that an invalid surface could be passed to MediaPlayerBridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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/android/scoped_java_surface.h
diff --git a/ui/gl/android/scoped_java_surface.h b/ui/gl/android/scoped_java_surface.h
index 54ed2a45190288f62a93e1018b8b9d0e4117055e..38447f92924890ca5d5b0e0d9e25da401129edf0 100644
--- a/ui/gl/android/scoped_java_surface.h
+++ b/ui/gl/android/scoped_java_surface.h
@@ -42,10 +42,13 @@ class GL_EXPORT ScopedJavaSurface {
~ScopedJavaSurface();
- // Check whether the surface is an empty one.
+ // Checks whether the surface is an empty one.
bool IsEmpty() const;
- // Check whether the surface is hardware protected so that no readback is
+ // Checks whether the surface is valid.
+ bool IsValid() const;
+
+ // Checks whether the surface is hardware protected so that no readback is
// possible.
bool is_protected() const { return is_protected_; }

Powered by Google App Engine
This is Rietveld 408576698