175f0d3110b04346b901771f96ce15cdbe907278fYang Ni/*
275f0d3110b04346b901771f96ce15cdbe907278fYang Ni * Copyright (C) 2016 The Android Open Source Project
375f0d3110b04346b901771f96ce15cdbe907278fYang Ni *
475f0d3110b04346b901771f96ce15cdbe907278fYang Ni * Licensed under the Apache License, Version 2.0 (the "License");
575f0d3110b04346b901771f96ce15cdbe907278fYang Ni * you may not use this file except in compliance with the License.
675f0d3110b04346b901771f96ce15cdbe907278fYang Ni * You may obtain a copy of the License at
775f0d3110b04346b901771f96ce15cdbe907278fYang Ni *
875f0d3110b04346b901771f96ce15cdbe907278fYang Ni *      http://www.apache.org/licenses/LICENSE-2.0
975f0d3110b04346b901771f96ce15cdbe907278fYang Ni *
1075f0d3110b04346b901771f96ce15cdbe907278fYang Ni * Unless required by applicable law or agreed to in writing, software
1175f0d3110b04346b901771f96ce15cdbe907278fYang Ni * distributed under the License is distributed on an "AS IS" BASIS,
1275f0d3110b04346b901771f96ce15cdbe907278fYang Ni * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1375f0d3110b04346b901771f96ce15cdbe907278fYang Ni * See the License for the specific language governing permissions and
1475f0d3110b04346b901771f96ce15cdbe907278fYang Ni * limitations under the License.
1575f0d3110b04346b901771f96ce15cdbe907278fYang Ni */
1675f0d3110b04346b901771f96ce15cdbe907278fYang Ni
1775f0d3110b04346b901771f96ce15cdbe907278fYang Ni#include "rsovSampler.h"
1875f0d3110b04346b901771f96ce15cdbe907278fYang Ni
1975f0d3110b04346b901771f96ce15cdbe907278fYang Ni#include "rsContext.h"
2075f0d3110b04346b901771f96ce15cdbe907278fYang Ni
2175f0d3110b04346b901771f96ce15cdbe907278fYang Niusing android::renderscript::Context;
2275f0d3110b04346b901771f96ce15cdbe907278fYang Niusing android::renderscript::Sampler;
2375f0d3110b04346b901771f96ce15cdbe907278fYang Niusing android::renderscript::rs_sampler;
2475f0d3110b04346b901771f96ce15cdbe907278fYang Ni
2575f0d3110b04346b901771f96ce15cdbe907278fYang Nibool rsovSamplerInit(const Context *rsc, const Sampler *s) { return true; }
2675f0d3110b04346b901771f96ce15cdbe907278fYang Ni
2775f0d3110b04346b901771f96ce15cdbe907278fYang Nivoid rsovSamplerDestroy(const Context *rsc, const Sampler *s) {}
2875f0d3110b04346b901771f96ce15cdbe907278fYang Ni
2975f0d3110b04346b901771f96ce15cdbe907278fYang Nivoid rsovSamplerUpdateCachedObject(const Context *rsc, const Sampler *alloc,
3075f0d3110b04346b901771f96ce15cdbe907278fYang Ni                                   rs_sampler *obj) {
3175f0d3110b04346b901771f96ce15cdbe907278fYang Ni  obj->p = alloc;
3275f0d3110b04346b901771f96ce15cdbe907278fYang Ni#ifdef __LP64__
33700e68883c4324c15b380ff6724249f39d4f498cI-Jui (Ray) Sung  obj->unused1 = nullptr;
34700e68883c4324c15b380ff6724249f39d4f498cI-Jui (Ray) Sung  obj->unused2 = nullptr;
35700e68883c4324c15b380ff6724249f39d4f498cI-Jui (Ray) Sung  obj->unused3 = nullptr;
3675f0d3110b04346b901771f96ce15cdbe907278fYang Ni#endif
3775f0d3110b04346b901771f96ce15cdbe907278fYang Ni}
38