From 9cccc2b9bdd4850a3f9679569aaec3ab98477a5d Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sat, 7 Aug 2010 23:46:15 -0700 Subject: Enforce maximum texture size. When an app tries to render a bitmap or path larger than the GPU's maximum texture size, the drawing command is ignored and a warning is logged. This change also makes texture drawing more robust by catching potential errors during texture creation. This change also fixes a crash in the FontRenderer. The destructor would sometimes try to free an uninitialized array. Change-Id: I95ae0939c52192d97b340aa02417bf6d0c962c57 --- libs/hwui/TextureCache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libs/hwui/TextureCache.h') diff --git a/libs/hwui/TextureCache.h b/libs/hwui/TextureCache.h index bed11915c581..c7e50a17c5dd 100644 --- a/libs/hwui/TextureCache.h +++ b/libs/hwui/TextureCache.h @@ -82,6 +82,7 @@ private: uint32_t mSize; uint32_t mMaxSize; + GLuint mMaxTextureSize; }; // class TextureCache }; // namespace uirenderer -- cgit v1.2.3-59-g8ed1b