summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2014-05-20 18:16:20 -0700
committerJason Sams <jsams@google.com>2014-05-20 18:16:20 -0700
commitbfa5a8e76fd9469cdecb3115685ded677d2d210a (patch)
tree8b294654b788ea7ef01f1d76103edddc8de243db /cpp
parentd370bb0b77b00bc3dfc2c6ec46a40a407e275194 (diff)
downloadrs-bfa5a8e76fd9469cdecb3115685ded677d2d210a.tar.gz
Add flags for low power context.
Change-Id: I46b4fb7555f088dd90a9f8b7283d5b3aa75ceb1c
Diffstat (limited to 'cpp')
-rw-r--r--cpp/RenderScript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index d05e4cd2..25a2990e 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -493,7 +493,8 @@ bool RS::init(std::string &name, int targetApi, uint32_t flags) {
return false;
}
- if (flags >= RS_CONTEXT_MAX) {
+ if (flags & ~(RS_CONTEXT_SYNCHRONOUS | RS_CONTEXT_LOW_LATENCY |
+ RS_CONTEXT_LOW_POWER)) {
ALOGE("Invalid flags passed");
return false;
}