Make vertex structs private
Change-Id: If09866766b4827dd8390094f1481f766f2ea28f7
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/294301
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Herb Derby <herb@google.com>
diff --git a/src/gpu/text/GrTextBlob.h b/src/gpu/text/GrTextBlob.h
index c8e5a2d..7e88da2 100644
--- a/src/gpu/text/GrTextBlob.h
+++ b/src/gpu/text/GrTextBlob.h
@@ -128,35 +128,6 @@
const SkMatrixProvider& deviceMatrix,
SkPoint drawOrigin);
- struct AtlasPt {
- uint16_t u;
- uint16_t v;
- };
-
- // Normal text mask, SDFT, or color.
- struct Mask2DVertex {
- SkPoint devicePos;
- GrColor color;
- AtlasPt atlasPos;
- };
- struct ARGB2DVertex {
- ARGB2DVertex(SkPoint d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {}
- SkPoint devicePos;
- AtlasPt atlasPos;
- };
-
- // Perspective SDFT or SDFT forced to 3D or perspective color.
- struct Mask3DVertex {
- SkPoint3 devicePos;
- GrColor color;
- AtlasPt atlasPos;
- };
- struct ARGB3DVertex {
- ARGB3DVertex(SkPoint3 d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {}
- SkPoint3 devicePos;
- AtlasPt atlasPos;
- };
-
static const int kVerticesPerGlyph = 4;
const Key& key() const;
@@ -390,6 +361,35 @@
uint64_t fAtlasGeneration{GrDrawOpAtlas::kInvalidAtlasGeneration};
private:
+ struct AtlasPt {
+ uint16_t u;
+ uint16_t v;
+ };
+
+ // Normal text mask, SDFT, or color.
+ struct Mask2DVertex {
+ SkPoint devicePos;
+ GrColor color;
+ AtlasPt atlasPos;
+ };
+ struct ARGB2DVertex {
+ ARGB2DVertex(SkPoint d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {}
+ SkPoint devicePos;
+ AtlasPt atlasPos;
+ };
+
+ // Perspective SDFT or SDFT forced to 3D or perspective color.
+ struct Mask3DVertex {
+ SkPoint3 devicePos;
+ GrColor color;
+ AtlasPt atlasPos;
+ };
+ struct ARGB3DVertex {
+ ARGB3DVertex(SkPoint3 d, GrColor, AtlasPt a) : devicePos{d}, atlasPos{a} {}
+ SkPoint3 devicePos;
+ AtlasPt atlasPos;
+ };
+
static SubRun* InitForAtlas(SubRunType type,
const SkZip<SkGlyphVariant, SkPoint>& drawables,
const SkStrikeSpec& strikeSpec,