diff options
author | Romain Guy <romainguy@google.com> | 2010-12-07 20:09:23 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-12-07 20:12:50 -0800 |
commit | 67f27952c1bcb2230beef9b5ca0bf42edad436a9 (patch) | |
tree | 9cfec6c807b64d51fba041e2f6dd50c6abe3577e /libs/hwui/Program.h | |
parent | dbf78bdb7a9aed3b8393c247128a7e8c760343b5 (diff) | |
download | frameworks_base-67f27952c1bcb2230beef9b5ca0bf42edad436a9.zip frameworks_base-67f27952c1bcb2230beef9b5ca0bf42edad436a9.tar.gz frameworks_base-67f27952c1bcb2230beef9b5ca0bf42edad436a9.tar.bz2 |
Correctly release the OpenGL Canvas on EGL error.
Change-Id: Ib31fd8445f7ce5f7aa7e0205de0e7db80d024fc2
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r-- | libs/hwui/Program.h | 8 |
1 files changed, 8 insertions, 0 deletions
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<const char*, int> uniforms; bool mUse; + bool mInitialized; }; // class Program }; // namespace uirenderer |