1a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams/*
2a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * Copyright (C) 2012 The Android Open Source Project
3a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams *
4a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * Licensed under the Apache License, Version 2.0 (the "License");
5a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * you may not use this file except in compliance with the License.
6a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * You may obtain a copy of the License at
7a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams *
8a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams *      http://www.apache.org/licenses/LICENSE-2.0
9a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams *
10a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * Unless required by applicable law or agreed to in writing, software
11a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * distributed under the License is distributed on an "AS IS" BASIS,
12a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * See the License for the specific language governing permissions and
14a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * limitations under the License.
15a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams */
16a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams
17a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Samspackage android.support.v8.renderscript;
18a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams
19a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams/**
20a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * Base class for all Intrinsic scripts. An intrinsic a script
21a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * which implements a pre-defined function. Intrinsics are
22a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * provided to provide effecient implemtations of common
23a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * operations.
24a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams *
25a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams * Not intended for direct use.
26a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams **/
27a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Samspublic abstract class ScriptIntrinsic extends Script {
28bec39b6de685a7dddb1925c7e9f83fae20388de3Miao Wang    ScriptIntrinsic(long id, RenderScript rs) {
29a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams        super(id, rs);
308352bdceb7f0030593db04a06ba8caebf81eaeeaMiao Wang        if (id == 0) {
318352bdceb7f0030593db04a06ba8caebf81eaeeaMiao Wang            throw new RSRuntimeException("Loading of ScriptIntrinsic failed.");
328352bdceb7f0030593db04a06ba8caebf81eaeeaMiao Wang        }
33a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams    }
34a5e8cafe9173abee2b47e7c927210a22934a30e5Jason Sams}
35