|
const char * | name () const override |
|
FixedFunctionFlags | fixedFunctionFlags () const override |
|
GrProcessorSet::Analysis | finalize (const GrCaps &caps, const GrAppliedClip *clip, GrClampType clampType) override |
|
void | visitProxies (const GrVisitProxyFunc &func) const override |
|
| GrDrawOp (uint32_t classID) |
|
virtual bool | usesMSAA () const |
|
virtual ClipResult | clipToShape (skgpu::ganesh::SurfaceDrawContext *, SkClipOp, const SkMatrix &, const GrShape &, GrAA) |
|
virtual bool | usesStencil () const |
|
virtual | ~GrOp ()=default |
|
CombineResult | combineIfPossible (GrOp *that, SkArenaAlloc *alloc, const GrCaps &caps) |
|
const SkRect & | bounds () const |
|
void | setClippedBounds (const SkRect &clippedBounds) |
|
bool | hasAABloat () const |
|
bool | hasZeroArea () const |
|
void | operator delete (void *p) |
|
template<typename T > |
const T & | cast () const |
|
template<typename T > |
T * | cast () |
|
uint32_t | classID () const |
|
uint32_t | uniqueID () const |
|
void | prePrepare (GrRecordingContext *context, const GrSurfaceProxyView &dstView, GrAppliedClip *clip, const GrDstProxyView &dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) |
|
void | prepare (GrOpFlushState *state) |
|
void | execute (GrOpFlushState *state, const SkRect &chainBounds) |
|
void | chainConcat (GrOp::Owner) |
|
bool | isChainHead () const |
|
bool | isChainTail () const |
|
GrOp * | nextInChain () const |
|
GrOp * | prevInChain () const |
|
GrOp::Owner | cutChain () |
|
void | setBounds (const SkRect &newBounds, HasAABloat aabloat, IsHairline zeroArea) |
|
void | setTransformedBounds (const SkRect &srcBounds, const SkMatrix &m, HasAABloat aabloat, IsHairline zeroArea) |
|
void | makeFullScreen (GrSurfaceProxy *proxy) |
|
|
static GrOp::Owner | Make (GrRecordingContext *context, sk_sp< GrGpuBuffer > buffer, int baseVertex, int vertexCount, const SkRect &bounds) |
|
static bool | CanUpgradeAAOnMerge (GrAAType aa1, GrAAType aa2) |
|
template<typename Op , typename... Args> |
static Owner | Make (GrRecordingContext *context, Args &&... args) |
|
template<typename Op , typename... Args> |
static Owner | MakeWithProcessorSet (GrRecordingContext *context, const SkPMColor4f &color, GrPaint &&paint, Args &&... args) |
|
template<typename Op , typename... Args> |
static Owner | MakeWithExtraMemory (GrRecordingContext *context, size_t extraSize, Args &&... args) |
|
static uint32_t | GenOpClassID () |
|
|
enum class | ClipResult { kFail
, kClippedGeometrically
, kClippedInShader
, kClippedOut
} |
|
enum class | CombineResult { kMerged
, kMayChain
, kCannotCombine
} |
|
enum class | HasAABloat : bool { kNo = false
, kYes = true
} |
|
enum class | IsHairline : bool { kNo = false
, kYes = true
} |
|
using | Owner = std::unique_ptr< GrOp > |
|
enum class | FixedFunctionFlags : uint32_t { kNone = 0x0
, kUsesHWAA = 0x1
, kUsesStencil = 0x2
} |
|
| GrMeshDrawOp (uint32_t classID) |
|
void | createProgramInfo (const GrCaps *caps, SkArenaAlloc *arena, const GrSurfaceProxyView &writeView, bool usesMSAASurface, GrAppliedClip &&appliedClip, const GrDstProxyView &dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) |
|
void | createProgramInfo (GrMeshDrawTarget *) |
|
virtual void | onPrePrepareDraws (GrRecordingContext *, const GrSurfaceProxyView &writeView, GrAppliedClip *, const GrDstProxyView &, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) |
|
| GR_DECL_BITFIELD_CLASS_OPS_FRIENDS (FixedFunctionFlags) |
|
static bool | CombinedQuadCountWillOverflow (GrAAType aaType, bool willBeUpgradedToAA, int combinedQuadCount) |
|
Definition at line 71 of file GrGpuBufferTest.cpp.
◆ finalize()
This is called after the GrAppliedClip has been computed and just prior to recording the op or combining it with a previously recorded op. The op should convert any proxies or resources it owns to "pending io" status so that resource allocation can be more optimal. Additionally, at this time the op must report whether a copy of the destination (or destination texture itself) needs to be provided to the GrXferProcessor when this op executes.
Implements GrDrawOp.
Definition at line 89 of file GrGpuBufferTest.cpp.
91 {
98 caps,
99 clampType,
102 return analysis;
103 }
static const uint64_t kGreen
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
Analysis finalize(const GrProcessorAnalysisColor &, const GrProcessorAnalysisCoverage, const GrAppliedClip *, const GrUserStencilSettings *, const GrCaps &, GrClampType, SkPMColor4f *inputColorOverride)
static const GrUserStencilSettings & kUnused
◆ fixedFunctionFlags()
◆ Make()
Definition at line 73 of file GrGpuBufferTest.cpp.
77 {
78 return GrOp::Make<TestVertexOp>(context,
80 baseVertex,
81 vertexCount,
83 }
const SkRect & bounds() const
static const uint8_t buffer[]
◆ name()
const char * TestVertexOp::name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ onCreateProgramInfo()
|
inlineoverrideprivatevirtual |
Implements GrMeshDrawOp.
Definition at line 128 of file GrGpuBufferTest.cpp.
135 {
137 caps,
138 arena,
139 writeView,
140 usesMSAASurface,
141 std::move(appliedClip),
142 dstProxyView,
143 &fGP,
144 std::move(fProcessorSet),
146 renderPassXferBarriers,
147 colorLoadOp,
149 }
static GrProgramInfo * CreateProgramInfo(const GrCaps *, SkArenaAlloc *, const GrPipeline *, const GrSurfaceProxyView &writeView, bool usesMSAASurface, GrGeometryProcessor *, GrPrimitiveType, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp, const GrUserStencilSettings *=&GrUserStencilSettings::kUnused)
◆ onExecute()
|
inlineoverrideprivatevirtual |
Implements GrOp.
Definition at line 194 of file GrGpuBufferTest.cpp.
194 {
195 if (!fProgramInfo) {
197 }
198
202 }
void createProgramInfo(const GrCaps *caps, SkArenaAlloc *arena, const GrSurfaceProxyView &writeView, bool usesMSAASurface, GrAppliedClip &&appliedClip, const GrDstProxyView &dstProxyView, GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp)
void drawMesh(const GrSimpleMesh &mesh)
void bindPipelineAndScissorClip(const GrProgramInfo &programInfo, const SkRect &drawBounds)
void bindTextures(const GrGeometryProcessor &geomProc, const GrSurfaceProxy &singleGeomProcTexture, const GrPipeline &pipeline)
const GrPipeline & pipeline() const
const GrGeometryProcessor & geomProc() const
◆ onPrepareDraws()
|
inlineoverrideprivatevirtual |
Implements GrMeshDrawOp.
Definition at line 189 of file GrGpuBufferTest.cpp.
189 {
190 fMesh =
target->allocMesh();
191 fMesh->
set(fBuffer, fVertexCount, fBaseVertex);
192 }
void set(sk_sp< const GrBuffer > vertexBuffer, int vertexCount, int baseVertex)
◆ programInfo()
|
inlineoverrideprivatevirtual |
◆ visitProxies()
Reimplemented from GrOp.
Definition at line 105 of file GrGpuBufferTest.cpp.
105 {
106 if (fProgramInfo) {
108 }
109 }
void visitFPProxies(const GrVisitProxyFunc &func) const
◆ ::GrOp
The documentation for this class was generated from the following file: