summaryrefslogtreecommitdiffstats
path: root/cpp/Allocation.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2013-02-12 11:25:12 -0800
committerTim Murray <timmurray@google.com>2013-02-12 11:25:12 -0800
commit96267c2ff0133c20cc5643419a3ed3b1e75fe568 (patch)
tree530f1323c934d0986d39cfbcdb261e18b3f4b038 /cpp/Allocation.cpp
parent60c2796d821d9296003d4e5db025f8734d971a71 (diff)
downloadandroid_frameworks_rs-96267c2ff0133c20cc5643419a3ed3b1e75fe568.tar.gz
android_frameworks_rs-96267c2ff0133c20cc5643419a3ed3b1e75fe568.tar.bz2
android_frameworks_rs-96267c2ff0133c20cc5643419a3ed3b1e75fe568.zip
Add convenient Type creator, alignment define, and fix USAGE_SHARED issue.
Change-Id: Ib344ed27feee95c9eddf4f58468ef3e29fdfabab
Diffstat (limited to 'cpp/Allocation.cpp')
-rw-r--r--cpp/Allocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/Allocation.cpp b/cpp/Allocation.cpp
index d6dfa942..9f3ce209 100644
--- a/cpp/Allocation.cpp
+++ b/cpp/Allocation.cpp
@@ -46,7 +46,8 @@ Allocation::Allocation(void *id, sp<RS> rs, sp<const Type> t, uint32_t usage) :
RS_ALLOCATION_USAGE_GRAPHICS_CONSTANTS |
RS_ALLOCATION_USAGE_GRAPHICS_RENDER_TARGET |
RS_ALLOCATION_USAGE_IO_INPUT |
- RS_ALLOCATION_USAGE_IO_OUTPUT)) != 0) {
+ RS_ALLOCATION_USAGE_IO_OUTPUT |
+ RS_ALLOCATION_USAGE_SHARED)) != 0) {
ALOGE("Unknown usage specified.");
}