1 /* 2 * Copyright (c) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef CAMERA_TEST_H 17 #define CAMERA_TEST_H 18 19 #include "draw/brush.h" 20 #include "draw/canvas.h" 21 #include "draw/color.h" 22 #include "draw/pen.h" 23 #include "utils/camera3d.h" 24 #include "utils/log.h" 25 #include "utils/matrix.h" 26 #include "utils/rect.h" 27 28 namespace OHOS { 29 namespace Rosen { 30 namespace Drawing { 31 class CameraTest { 32 public: 33 using TestFunc = std::function<void(Canvas&, uint32_t, uint32_t)>; GetInstance()34 inline static CameraTest& GetInstance() 35 { 36 static CameraTest cameraTestCase; 37 return cameraTestCase; 38 } 39 40 static void TestCamera(Canvas& canvas, uint32_t width, uint32_t height); 41 std::vector<TestFunc> CameraTestCase(); 42 43 private: 44 CameraTest() = default; 45 virtual ~CameraTest() = default; 46 }; 47 } // namespace Drawing 48 } // namespace Rosen 49 } // namespace OHOS 50 #endif // CAMERA_TEST_H