Remove GrResourceProvider.h from all other header files
According to
https://commondatastorage.googleapis.com/chromium-browser-clang/include-analysis.html
these account for 583,146,886 bytes of input to the compiler, or roughly
0.25% of the input used to build Chrome.
Bug: chromium:242216
Change-Id: I2d5b73db770dba296df18c02a251da21e82b9ec0
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/423836
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/ops/GrMeshDrawOp.cpp b/src/gpu/ops/GrMeshDrawOp.cpp
index da42d40..47201cf 100644
--- a/src/gpu/ops/GrMeshDrawOp.cpp
+++ b/src/gpu/ops/GrMeshDrawOp.cpp
@@ -26,6 +26,15 @@
target->colorLoadOp());
}
+bool GrMeshDrawOp::CombinedQuadCountWillOverflow(GrAAType aaType,
+ bool willBeUpgradedToAA,
+ int combinedQuadCount) {
+ bool willBeAA = (aaType == GrAAType::kCoverage) || willBeUpgradedToAA;
+
+ return combinedQuadCount > (willBeAA ? GrResourceProvider::MaxNumAAQuads()
+ : GrResourceProvider::MaxNumNonAAQuads());
+}
+
// This onPrepareDraws implementation assumes the derived Op only has a single programInfo -
// which is the majority of the cases.
void GrMeshDrawOp::onPrePrepareDraws(GrRecordingContext* context,