diff options
author | ztenghui <ztenghui@google.com> | 2014-02-14 13:13:41 -0800 |
---|---|---|
committer | ztenghui <ztenghui@google.com> | 2014-02-25 14:18:25 -0800 |
commit | 63d41abb40b3ce40d8b9bccb1cf186e8158a3687 (patch) | |
tree | 53ef1d5d691afa904e390e211f6adde28fb5f4ae /libs/hwui/Caches.h | |
parent | ef94c6f88fbb1deb095b1494378befcdb9722839 (diff) | |
download | frameworks_base-63d41abb40b3ce40d8b9bccb1cf186e8158a3687.zip frameworks_base-63d41abb40b3ce40d8b9bccb1cf186e8158a3687.tar.gz frameworks_base-63d41abb40b3ce40d8b9bccb1cf186e8158a3687.tar.bz2 |
Use pre-computed index to draw the shadow.
Also draw the umbra part as triangle fans instead of zig zag fashion.
b/12840179
Change-Id: Iaa5d15e77351acdd71f076bd8f9bb2d4d2b92faf
Diffstat (limited to 'libs/hwui/Caches.h')
-rw-r--r-- | libs/hwui/Caches.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h index 2cc15cc..8c0c508 100644 --- a/libs/hwui/Caches.h +++ b/libs/hwui/Caches.h @@ -190,8 +190,8 @@ public: * Binds a global indices buffer that can draw up to * gMaxNumberOfQuads quads. */ - bool bindIndicesBuffer(); - bool bindIndicesBuffer(const GLuint buffer); + bool bindQuadIndicesBuffer(); + bool bindShadowIndicesBuffer(); bool unbindIndicesBuffer(); /** @@ -381,6 +381,8 @@ private: void initConstraints(); void initStaticProperties(); + bool bindIndicesBufferInternal(const GLuint buffer); + static void eventMarkNull(GLsizei length, const GLchar* marker) { } static void startMarkNull(GLsizei length, const GLchar* marker) { } static void endMarkNull() { } @@ -417,6 +419,7 @@ private: // Global index buffer GLuint mMeshIndices; + GLuint mShadowStripsIndices; mutable Mutex mGarbageLock; Vector<Layer*> mLayerGarbage; |