diff options
| author | 2010-07-12 15:50:32 -0700 | |
|---|---|---|
| committer | 2010-07-12 15:50:32 -0700 | |
| commit | 80a4c2cd34aedb4f1a2e5e7d1ac26a9aeebe41ae (patch) | |
| tree | 1add64a0dee5bf0ac1c98b63bd3b43648ca7af50 /libs/rs/rsAllocation.cpp | |
| parent | cefd8d9588230577356d24597acc04ce1e276582 (diff) | |
Work on synchronizing a3d created files and java layer.
Adding culling to ProgramRaster
Change-Id: I58ccc82d37edc9539289d5eba44ea0e720874af5
Diffstat (limited to 'libs/rs/rsAllocation.cpp')
| -rw-r--r-- | libs/rs/rsAllocation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index d9d0bc53fd41..6560101e6a89 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -683,6 +683,14 @@ void rsi_AllocationRead(Context *rsc, RsAllocation va, void *data) a->read(data); } +const void* rsi_AllocationGetType(Context *rsc, RsAllocation va) +{ + Allocation *a = static_cast<Allocation *>(va); + a->getType()->incUserRef(); + + return a->getType(); +} + #endif //ANDROID_RS_BUILD_FOR_HOST } |