From 67f27952c1bcb2230beef9b5ca0bf42edad436a9 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 7 Dec 2010 20:09:23 -0800 Subject: Correctly release the OpenGL Canvas on EGL error. Change-Id: Ib31fd8445f7ce5f7aa7e0205de0e7db80d024fc2 --- libs/hwui/Program.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/hwui/Program.h') diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h index 5981662..afc6f3d 100644 --- a/libs/hwui/Program.h +++ b/libs/hwui/Program.h @@ -70,6 +70,13 @@ public: } /** + * Indicates whether this program was correctly compiled and linked. + */ + inline bool isInitialized() const { + return mInitialized; + } + + /** * Binds the program with the specified projection, modelView and * transform matrices. */ @@ -126,6 +133,7 @@ private: KeyedVector uniforms; bool mUse; + bool mInitialized; }; // class Program }; // namespace uirenderer -- cgit v1.1