Remove vertex buffer reads in GrAAConvexPathRenderer.
On windows vulkan I am seeing 3x perf gains on svgs and skps that
heavily use convex paths.
Change-Id: I6bb98846809f33cc6033964bfadb082ed225e7f2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/362677
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/ops/GrOp.h b/src/gpu/ops/GrOp.h
index 4222c7a..93c5de8 100644
--- a/src/gpu/ops/GrOp.h
+++ b/src/gpu/ops/GrOp.h
@@ -214,6 +214,7 @@
void prePrepare(GrRecordingContext* context, const GrSurfaceProxyView& dstView,
GrAppliedClip* clip, const GrXferProcessor::DstProxyView& dstProxyView,
GrXferBarrierFlags renderPassXferBarriers, GrLoadOp colorLoadOp) {
+ TRACE_EVENT0("skia.gpu", name());
this->onPrePrepare(context, dstView, clip, dstProxyView, renderPassXferBarriers,
colorLoadOp);
}
@@ -222,7 +223,10 @@
* Called prior to executing. The op should perform any resource creation or data transfers
* necessary before execute() is called.
*/
- void prepare(GrOpFlushState* state) { this->onPrepare(state); }
+ void prepare(GrOpFlushState* state) {
+ TRACE_EVENT0("skia.gpu", name());
+ this->onPrepare(state);
+ }
/** Issues the op's commands to GrGpu. */
void execute(GrOpFlushState* state, const SkRect& chainBounds) {