Go to the source code of this file.
◆ CanvasBackend
◆ RasterConfig
◆ CanvasBackends
Enumerator |
---|
kUnknown_CanvasBackend | |
kRaster_CanvasBackend | |
kGPU_CanvasBackend | |
kPDF_CanvasBackend | |
Definition at line 49 of file SkCanvasStateUtils.cpp.
◆ RasterConfigs
Enumerator |
---|
kUnknown_RasterConfig | |
kRGB_565_RasterConfig | |
kARGB_8888_RasterConfig | |
Definition at line 42 of file SkCanvasStateUtils.cpp.
42 {
46};
@ kARGB_8888_RasterConfig
◆ make_canvas_from_canvas_layer()
Definition at line 271 of file SkCanvasStateUtils.cpp.
271 {
273
279
281 return nullptr;
282 }
283
287
290
292
293
295
296 return canvas;
297}
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
static void setup_canvas_from_MC_state(const SkMCState &state, SkCanvas *canvas)
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
@ kUnknown_SkColorType
uninitialized
static SkColorType colorType(AImageDecoder *decoder, const AImageDecoderHeaderInfo *headerInfo)
struct SkCanvasLayerState::@423::@425 raster
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)
◆ setup_canvas_from_MC_state()
static void setup_canvas_from_MC_state |
( |
const SkMCState & |
state, |
|
|
SkCanvas * |
canvas |
|
) |
| |
|
static |
Definition at line 243 of file SkCanvasStateUtils.cpp.
243 {
244
246 for (
int i = 0;
i < 9;
i++) {
248 }
249
250
251
253 if (
state.clipRectCount > 0) {
255 state.clipRects[0].top,
256 state.clipRects[0].right,
257 state.clipRects[0].bottom);
258 for (
int i = 1;
i <
state.clipRectCount; ++
i) {
262 state.clipRects[
i].bottom});
263 }
264 }
265
268}
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void concat(const SkMatrix &matrix)
unsigned useCenter Optional< SkMatrix > matrix
Optional< SkRect > bounds
static constexpr SkIRect MakeEmpty()
static SkRect Make(const SkISize &size)
◆ setup_MC_state()
Definition at line 153 of file SkCanvasStateUtils.cpp.
153 {
154
155 state->clipRectCount = 0;
156
157
158 for (
int i = 0;
i < 9;
i++) {
160 }
161
162
163
164
165
167
169 state->clipRectCount = 1;
175 }
176}
static void * sk_malloc_throw(size_t size)
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)