summaryrefslogtreecommitdiffstats
path: root/graphics/java/android/renderscript/Element.java
diff options
context:
space:
mode:
authorJason Sams <jsams@google.com>2013-02-15 17:27:24 -0800
committerJason Sams <jsams@google.com>2013-02-15 17:27:24 -0800
commitdd6c8b34f172ba699954e4d3095dba8c0fd5e930 (patch)
tree85f0730fe135922fb6691fc41ec3f058a4e509e4 /graphics/java/android/renderscript/Element.java
parentafc43ed9a765766fc35477f42cbc6bfdad0b1067 (diff)
downloadframeworks_base-dd6c8b34f172ba699954e4d3095dba8c0fd5e930.zip
frameworks_base-dd6c8b34f172ba699954e4d3095dba8c0fd5e930.tar.gz
frameworks_base-dd6c8b34f172ba699954e4d3095dba8c0fd5e930.tar.bz2
Support typed YUV allocations.
Change-Id: I56e7a318dc979f0b7454fcfa5773ea6d95bbaeaa
Diffstat (limited to 'graphics/java/android/renderscript/Element.java')
-rw-r--r--graphics/java/android/renderscript/Element.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/java/android/renderscript/Element.java b/graphics/java/android/renderscript/Element.java
index a79ce17..f6c07d1 100644
--- a/graphics/java/android/renderscript/Element.java
+++ b/graphics/java/android/renderscript/Element.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2012 The Android Open Source Project
+ * Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -906,7 +906,8 @@ public class Element extends BaseObj {
dk == DataKind.PIXEL_LA ||
dk == DataKind.PIXEL_RGB ||
dk == DataKind.PIXEL_RGBA ||
- dk == DataKind.PIXEL_DEPTH)) {
+ dk == DataKind.PIXEL_DEPTH ||
+ dk == DataKind.PIXEL_YUV)) {
throw new RSIllegalArgumentException("Unsupported DataKind");
}
if (!(dt == DataType.UNSIGNED_8 ||