summaryrefslogtreecommitdiffstats
path: root/libs/hwui/PathCache.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@android.com>2010-08-07 23:46:15 -0700
committerRomain Guy <romainguy@android.com>2010-08-07 23:48:29 -0700
commit9cccc2b9bdd4850a3f9679569aaec3ab98477a5d (patch)
tree365c32954d65cf037c948ee92b14ed30243319f5 /libs/hwui/PathCache.h
parentde0547c07a65b59d5330588cdd8b1e410a613e9c (diff)
downloadframeworks_base-9cccc2b9bdd4850a3f9679569aaec3ab98477a5d.zip
frameworks_base-9cccc2b9bdd4850a3f9679569aaec3ab98477a5d.tar.gz
frameworks_base-9cccc2b9bdd4850a3f9679569aaec3ab98477a5d.tar.bz2
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
Diffstat (limited to 'libs/hwui/PathCache.h')
-rw-r--r--libs/hwui/PathCache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/PathCache.h b/libs/hwui/PathCache.h
index 206fb49..d09789f 100644
--- a/libs/hwui/PathCache.h
+++ b/libs/hwui/PathCache.h
@@ -139,6 +139,7 @@ private:
uint32_t mSize;
uint32_t mMaxSize;
+ GLuint mMaxTextureSize;
}; // class PathCache
}; // namespace uirenderer