summaryrefslogtreecommitdiff
path: root/cpp/Type.cpp
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-04-16 11:15:29 -0700
committerMiao Wang <miaowang@google.com>2015-04-16 11:15:29 -0700
commitdafeee0fdd890d5110f8dcc8cabc01c7979eacdd (patch)
treedd88ec93781ec01cfa65c4d0714e8aeace9f4b02 /cpp/Type.cpp
parent81d67ceaedf56620cd1e0ccf097baea8985f30bc (diff)
downloadrs-dafeee0fdd890d5110f8dcc8cabc01c7979eacdd.tar.gz
set mYuvFormat to RS_YUV_NONE in Type constructor.
Change-Id: I49415d85c3ec4ddb42c587b20c30df4d5fe25842
Diffstat (limited to 'cpp/Type.cpp')
-rw-r--r--cpp/Type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/Type.cpp b/cpp/Type.cpp
index 033ef7b1..9581b371 100644
--- a/cpp/Type.cpp
+++ b/cpp/Type.cpp
@@ -109,6 +109,7 @@ sp<const Type> Type::create(sp<RS> rs, sp<const Element> e, uint32_t dimX, uint3
t->mDimZ = dimZ;
t->mDimMipmaps = false;
t->mDimFaces = false;
+ t->mYuvFormat = RS_YUV_NONE;
t->calcElementCount();
@@ -123,6 +124,7 @@ Type::Builder::Builder(sp<RS> rs, sp<const Element> e) {
mDimZ = 0;
mDimMipmaps = false;
mDimFaces = false;
+ mYuvFormat = RS_YUV_NONE;
}
void Type::Builder::setX(uint32_t value) {