Rename CPU tessellation to "triangulation"
Ambiguity has come up re: what "tessellation" means in Ganesh. I
believe that, in the context of a graphics library, "tessellation"
should refer to the hardware pipeline feature of submitting patches
and tessellating them on the GPU. This CL therefore renames classes
that triangulate things on the CPU to call it "triangulation".
Change-Id: Ic8515ea6a33000f1b638a852d5122bc9bd6b38f2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/279236
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/tools/viewer/Viewer.cpp b/tools/viewer/Viewer.cpp
index 3d51910..6772624 100644
--- a/tools/viewer/Viewer.cpp
+++ b/tools/viewer/Viewer.cpp
@@ -43,7 +43,7 @@
#include "tools/viewer/SvgSlide.h"
#include "tools/viewer/Viewer.h"
-#include <stdlib.h>
+#include <cstdlib>
#include <map>
#include "imgui.h"
@@ -288,7 +288,7 @@
gPathRendererNames[GpuPathRenderers::kStencilAndCover] = "NV_path_rendering";
gPathRendererNames[GpuPathRenderers::kSmall] = "Small paths (cached sdf or alpha masks)";
gPathRendererNames[GpuPathRenderers::kCoverageCounting] = "CCPR";
- gPathRendererNames[GpuPathRenderers::kTessellating] = "Tessellating";
+ gPathRendererNames[GpuPathRenderers::kTriangulating] = "Triangulating";
gPathRendererNames[GpuPathRenderers::kNone] = "Software masks";
SkDebugf("Command line arguments: ");
@@ -1757,7 +1757,7 @@
}
prButton(GpuPathRenderers::kSmall);
}
- prButton(GpuPathRenderers::kTessellating);
+ prButton(GpuPathRenderers::kTriangulating);
prButton(GpuPathRenderers::kNone);
}
ImGui::TreePop();
@@ -2426,7 +2426,7 @@
}
writer.appendString(gPathRendererNames[GpuPathRenderers::kSmall].c_str());
}
- writer.appendString(gPathRendererNames[GpuPathRenderers::kTessellating].c_str());
+ writer.appendString(gPathRendererNames[GpuPathRenderers::kTriangulating].c_str());
writer.appendString(gPathRendererNames[GpuPathRenderers::kNone].c_str());
}
});