Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkBlitter_A8.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkBlitter_A8_DEFINED
9#define SkBlitter_A8_DEFINED
10
14#include "src/core/SkBlitter.h"
15
16#include <cstdint>
17
18class SkArenaAlloc;
19class SkMatrix;
20class SkPaint;
21class SkShader;
22class SkSurfaceProps;
23struct SkIRect;
24struct SkMask;
25
27public:
29 void blitH(int x, int y, int width) override;
30 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) override;
31 void blitV(int x, int y, int height, SkAlpha alpha) override;
32 void blitRect(int x, int y, int width, int height) override;
33 void blitMask(const SkMask&, const SkIRect&) override;
34
35private:
36 const SkPixmap fDevice;
37};
38
40 const SkMatrix& ctm,
41 const SkPaint& paint,
43 bool drawCoverage,
44 sk_sp<SkShader> clipShader,
45 const SkSurfaceProps&);
46
47#endif // SkBlitter_A8_DEFINED
SkBlitter * SkA8Blitter_Choose(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &)
uint8_t SkAlpha
Definition SkColor.h:26
void blitMask(const SkMask &, const SkIRect &) override
void blitRect(int x, int y, int width, int height) override
Blit a solid rectangle one or more pixels wide.
void blitH(int x, int y, int width) override
Blit a horizontal run of one or more pixels.
void blitV(int x, int y, int height, SkAlpha alpha) override
Blit a vertical run of pixels with a constant alpha value.
void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[]) override
const Paint & paint
VkDevice device
Definition main.cc:53
double y
double x
int32_t height
int32_t width