diff options
author | Jason Sams <rjsams@android.com> | 2010-02-17 15:38:10 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2010-02-17 15:38:10 -0800 |
commit | e4c487a75282e8a38a8b3defd49e7799c8670881 (patch) | |
tree | cce081d45415dfe54bdd65761e85f13046c91a82 /libs/rs/rsProgramVertex.cpp | |
parent | 5bc54073186a83472963934d4325c3b9d968892f (diff) | |
download | frameworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.zip frameworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.tar.gz frameworks_base-e4c487a75282e8a38a8b3defd49e7799c8670881.tar.bz2 |
Implement type collapsing for Elements and Types. Now if a user creates two or more identical objects we simply reuse the existing object rather than create a new one.
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
-rw-r--r-- | libs/rs/rsProgramVertex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index 28f13d4..a2b2df4 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -364,7 +364,7 @@ ProgramVertexState::~ProgramVertexState() void ProgramVertexState::init(Context *rsc, int32_t w, int32_t h) { - RsElement e = Element::create(rsc, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 1); + RsElement e = (RsElement) Element::create(rsc, RS_TYPE_FLOAT_32, RS_KIND_USER, false, 1); rsi_TypeBegin(rsc, e); rsi_TypeAdd(rsc, RS_DIMENSION_X, 48); |