Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
GrOpsTypes.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 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 GrOpsTypes_DEFINED
9
#define GrOpsTypes_DEFINED
10
11
#include "
include/core/SkMatrix.h
"
12
#include "
include/core/SkRect.h
"
13
#include "
include/private/SkColorData.h
"
14
#include "
include/private/gpu/ganesh/GrTypesPriv.h
"
15
#include "
src/gpu/ganesh/GrSurfaceProxyView.h
"
16
17
/** Used by SDC::drawQuadSet and FillRectOp */
18
struct
GrQuadSetEntry
{
19
SkRect
fRect
;
20
SkPMColor4f
fColor
;
// Overrides any color on the GrPaint
21
SkMatrix
fLocalMatrix
;
22
GrQuadAAFlags
fAAFlags
;
23
};
24
25
/** Used by SDC::drawTextureSet and TextureOp */
26
struct
GrTextureSetEntry
{
27
GrSurfaceProxyView
fProxyView
;
28
SkAlphaType
fSrcAlphaType
;
29
SkRect
fSrcRect
;
30
SkRect
fDstRect
;
31
const
SkPoint
*
fDstClipQuad
;
// Must be null, or point to an array of 4 points
32
const
SkMatrix
*
fPreViewMatrix
;
// If not null, entry's CTM is 'viewMatrix' * fPreViewMatrix
33
SkPMColor4f
fColor
;
// {a,a,a,a} for rgb textures, {r,g,b,a} for alpha-only textures
34
GrQuadAAFlags
fAAFlags
;
35
};
36
37
#endif
GrSurfaceProxyView.h
GrTypesPriv.h
GrQuadAAFlags
GrQuadAAFlags
Definition:
GrTypesPriv.h:247
SkAlphaType
SkAlphaType
Definition:
SkAlphaType.h:26
SkColorData.h
SkMatrix.h
SkRect.h
GrSurfaceProxyView
Definition:
GrSurfaceProxyView.h:34
SkMatrix
Definition:
SkMatrix.h:54
GrQuadSetEntry
Definition:
GrOpsTypes.h:18
GrQuadSetEntry::fColor
SkPMColor4f fColor
Definition:
GrOpsTypes.h:20
GrQuadSetEntry::fAAFlags
GrQuadAAFlags fAAFlags
Definition:
GrOpsTypes.h:22
GrQuadSetEntry::fLocalMatrix
SkMatrix fLocalMatrix
Definition:
GrOpsTypes.h:21
GrQuadSetEntry::fRect
SkRect fRect
Definition:
GrOpsTypes.h:19
GrTextureSetEntry
Definition:
GrOpsTypes.h:26
GrTextureSetEntry::fSrcRect
SkRect fSrcRect
Definition:
GrOpsTypes.h:29
GrTextureSetEntry::fColor
SkPMColor4f fColor
Definition:
GrOpsTypes.h:33
GrTextureSetEntry::fDstClipQuad
const SkPoint * fDstClipQuad
Definition:
GrOpsTypes.h:31
GrTextureSetEntry::fPreViewMatrix
const SkMatrix * fPreViewMatrix
Definition:
GrOpsTypes.h:32
GrTextureSetEntry::fSrcAlphaType
SkAlphaType fSrcAlphaType
Definition:
GrOpsTypes.h:28
GrTextureSetEntry::fProxyView
GrSurfaceProxyView fProxyView
Definition:
GrOpsTypes.h:27
GrTextureSetEntry::fAAFlags
GrQuadAAFlags fAAFlags
Definition:
GrOpsTypes.h:34
GrTextureSetEntry::fDstRect
SkRect fDstRect
Definition:
GrOpsTypes.h:30
SkPoint
Definition:
SkPoint_impl.h:163
SkRGBA4f< kPremul_SkAlphaType >
SkRect
Definition:
extension.cpp:13
Generated on Sun Jun 23 2024 21:56:20 for Flutter Engine by
1.9.4