17c804472Sopenharmony_ci/*
27c804472Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
37c804472Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
47c804472Sopenharmony_ci * you may not use this file except in compliance with the License.
57c804472Sopenharmony_ci * You may obtain a copy of the License at
67c804472Sopenharmony_ci *
77c804472Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
87c804472Sopenharmony_ci *
97c804472Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
107c804472Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
117c804472Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127c804472Sopenharmony_ci * See the License for the specific language governing permissions and
137c804472Sopenharmony_ci * limitations under the License.
147c804472Sopenharmony_ci */
157c804472Sopenharmony_ci
167c804472Sopenharmony_ci#include "soft_engine.h"
177c804472Sopenharmony_ci#include "MockGlobalResult.h"
187c804472Sopenharmony_ci
197c804472Sopenharmony_cinamespace OHOS {
207c804472Sopenharmony_ci    // all functions only for mock test, no specific implementation
217c804472Sopenharmony_ci    void SoftEngine::DrawArc(BufferInfo& dst, ArcInfo& arcInfo, const Rect& mask, const Style& style,
227c804472Sopenharmony_ci        OpacityType opacity, uint8_t cap) {}
237c804472Sopenharmony_ci
247c804472Sopenharmony_ci    void SoftEngine::DrawLine(BufferInfo& dst, const Point& start, const Point& end, const Rect& mask,
257c804472Sopenharmony_ci        int16_t width, ColorType color, OpacityType opacity) {}
267c804472Sopenharmony_ci
277c804472Sopenharmony_ci    void SoftEngine::DrawLetter(BufferInfo& gfxDstBuffer, const uint8_t* fontMap, const Rect& fontRect,
287c804472Sopenharmony_ci        const Rect& subRect, const uint8_t fontWeight, const ColorType& color, const OpacityType opa) {}
297c804472Sopenharmony_ci
307c804472Sopenharmony_ci    void SoftEngine::DrawCubicBezier(BufferInfo& dst, const Point& start, const Point& control1,
317c804472Sopenharmony_ci        const Point& control2, const Point& end, const Rect& mask, int16_t width, ColorType color,
327c804472Sopenharmony_ci        OpacityType opacity) {}
337c804472Sopenharmony_ci
347c804472Sopenharmony_ci    void SoftEngine::DrawRect(BufferInfo& dst, const Rect& rect, const Rect& dirtyRect, const Style& style,
357c804472Sopenharmony_ci        OpacityType opacity) {}
367c804472Sopenharmony_ci
377c804472Sopenharmony_ci    void SoftEngine::DrawTransform(BufferInfo& dst, const Rect& mask, const Point& position, ColorType color,
387c804472Sopenharmony_ci        OpacityType opacity, const TransformMap& transMap, const TransformDataInfo& dataInfo) {}
397c804472Sopenharmony_ci
407c804472Sopenharmony_ci    void SoftEngine::ClipCircle(const ImageInfo* info, float x, float y, float radius) {}
417c804472Sopenharmony_ci
427c804472Sopenharmony_ci    void SoftEngine::Blit(BufferInfo& dst, const Point& dstPos, const BufferInfo& src, const Rect& subRect,
437c804472Sopenharmony_ci        const BlendOption& blendOption) {}
447c804472Sopenharmony_ci
457c804472Sopenharmony_ci    void SoftEngine::Fill(BufferInfo& dst, const Rect& fillArea, const ColorType color,
467c804472Sopenharmony_ci        const OpacityType opacity) {}
477c804472Sopenharmony_ci
487c804472Sopenharmony_ci    void SoftEngine::DrawPath(BufferInfo& dst, void* param, const Paint& paint, const Rect& rect,
497c804472Sopenharmony_ci        const Rect& invalidatedArea, const Style& style) {}
507c804472Sopenharmony_ci
517c804472Sopenharmony_ci    void SoftEngine::FillPath(BufferInfo& dst, void* param, const Paint& paint, const Rect& rect,
527c804472Sopenharmony_ci        const Rect& invalidatedArea, const Style& style) {}
537c804472Sopenharmony_ci
547c804472Sopenharmony_ci    uint8_t* SoftEngine::AllocBuffer(uint32_t size, uint32_t usage)
557c804472Sopenharmony_ci    {
567c804472Sopenharmony_ci        return nullptr;
577c804472Sopenharmony_ci    }
587c804472Sopenharmony_ci
597c804472Sopenharmony_ci    void SoftEngine::FreeBuffer(uint8_t* buffer, uint32_t usage) {}
607c804472Sopenharmony_ci}