1*32afb93cSXin Li /* 2*32afb93cSXin Li * Copyright (C) 2021 The Android Open Source Project 3*32afb93cSXin Li * 4*32afb93cSXin Li * Licensed under the Apache License, Version 2.0 (the "License"); 5*32afb93cSXin Li * you may not use this file except in compliance with the License. 6*32afb93cSXin Li * You may obtain a copy of the License at 7*32afb93cSXin Li * 8*32afb93cSXin Li * http://www.apache.org/licenses/LICENSE-2.0 9*32afb93cSXin Li * 10*32afb93cSXin Li * Unless required by applicable law or agreed to in writing, software 11*32afb93cSXin Li * distributed under the License is distributed on an "AS IS" BASIS, 12*32afb93cSXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*32afb93cSXin Li * See the License for the specific language governing permissions and 14*32afb93cSXin Li * limitations under the License. 15*32afb93cSXin Li */ 16*32afb93cSXin Li 17*32afb93cSXin Li #include "RenderScriptToolkit.h" 18*32afb93cSXin Li 19*32afb93cSXin Li #include "TaskProcessor.h" 20*32afb93cSXin Li 21*32afb93cSXin Li #define LOG_TAG "renderscript.toolkit.RenderScriptToolkit" 22*32afb93cSXin Li 23*32afb93cSXin Li namespace renderscript { 24*32afb93cSXin Li 25*32afb93cSXin Li // You will find the implementation of the various transformations in the correspondingly 26*32afb93cSXin Li // named source file. E.g. RenderScriptToolkit::blur() is found in Blur.cpp. 27*32afb93cSXin Li RenderScriptToolkit(int numberOfThreads)28*32afb93cSXin LiRenderScriptToolkit::RenderScriptToolkit(int numberOfThreads) 29*32afb93cSXin Li : processor{new TaskProcessor(numberOfThreads)} {} 30*32afb93cSXin Li ~RenderScriptToolkit()31*32afb93cSXin LiRenderScriptToolkit::~RenderScriptToolkit() { 32*32afb93cSXin Li // By defining the destructor here, we don't need to include TaskProcessor.h 33*32afb93cSXin Li // in RenderScriptToolkit.h. 34*32afb93cSXin Li } 35*32afb93cSXin Li 36*32afb93cSXin Li } // namespace renderscript 37