blob: 2dfcde606019c50a7924743b2233d16d30efc5b4 [file] [log] [blame]
Chris Dalton49d14e92018-07-27 12:38:35 -06001/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "gm/gm.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -04009#include "include/core/SkBlendMode.h"
10#include "include/core/SkCanvas.h"
11#include "include/core/SkColorSpace.h"
12#include "include/core/SkMatrix.h"
13#include "include/core/SkPoint.h"
14#include "include/core/SkRect.h"
15#include "include/core/SkRefCnt.h"
16#include "include/core/SkSize.h"
17#include "include/core/SkString.h"
18#include "include/core/SkTypes.h"
Robert Phillipsb7bfbc22020-07-01 12:55:01 -040019#include "include/gpu/GrRecordingContext.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040020#include "include/gpu/GrTypes.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040021#include "include/private/SkColorData.h"
Robert Phillips59ba27b2022-04-12 09:59:38 -040022#include "include/private/gpu/ganesh/GrTypesPriv.h"
Robert Phillips7a0d3c32021-07-21 15:39:51 -040023#include "src/core/SkCanvasPriv.h"
Greg Danielcdeb0922021-12-20 12:37:56 -050024#include "src/gpu/KeyBuilder.h"
Greg Daniel719239c2022-04-07 11:20:24 -040025#include "src/gpu/ganesh/GrBuffer.h"
Kevin Lubickacdc1082023-06-09 11:05:24 -040026#include "src/gpu/ganesh/GrCanvas.h"
Greg Daniel719239c2022-04-07 11:20:24 -040027#include "src/gpu/ganesh/GrCaps.h"
28#include "src/gpu/ganesh/GrColorSpaceXform.h"
29#include "src/gpu/ganesh/GrDirectContextPriv.h"
30#include "src/gpu/ganesh/GrGeometryProcessor.h"
31#include "src/gpu/ganesh/GrGpuBuffer.h"
32#include "src/gpu/ganesh/GrMemoryPool.h"
33#include "src/gpu/ganesh/GrOpFlushState.h"
34#include "src/gpu/ganesh/GrOpsRenderPass.h"
35#include "src/gpu/ganesh/GrPipeline.h"
36#include "src/gpu/ganesh/GrProcessor.h"
37#include "src/gpu/ganesh/GrProcessorSet.h"
38#include "src/gpu/ganesh/GrProgramInfo.h"
39#include "src/gpu/ganesh/GrRecordingContextPriv.h"
40#include "src/gpu/ganesh/GrResourceProvider.h"
41#include "src/gpu/ganesh/GrSamplerState.h"
42#include "src/gpu/ganesh/GrShaderCaps.h"
43#include "src/gpu/ganesh/GrShaderVar.h"
44#include "src/gpu/ganesh/GrSurfaceProxy.h"
45#include "src/gpu/ganesh/GrTextureProxy.h"
Robert Phillipsc1b94082022-08-09 17:16:19 -040046#include "src/gpu/ganesh/SurfaceDrawContext.h"
Greg Daniel719239c2022-04-07 11:20:24 -040047#include "src/gpu/ganesh/glsl/GrGLSLFragmentShaderBuilder.h"
48#include "src/gpu/ganesh/glsl/GrGLSLVarying.h"
49#include "src/gpu/ganesh/ops/GrDrawOp.h"
50#include "src/gpu/ganesh/ops/GrOp.h"
Robert Phillips34cea002019-11-21 16:02:34 -050051#include "tools/gpu/ProxyUtils.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040052
53#include <memory>
54#include <utility>
55
56class GrAppliedClip;
57class GrGLSLProgramDataManager;
Chris Dalton49d14e92018-07-27 12:38:35 -060058
Hal Canaryfa3305a2019-07-18 12:36:54 -040059namespace {
Chris Dalton49d14e92018-07-27 12:38:35 -060060
Brian Osmand4c29702018-09-14 16:16:55 -040061static constexpr GrGeometryProcessor::Attribute gVertex =
Robert Phillips1042c002022-01-21 14:59:22 -050062 {"position", kFloat2_GrVertexAttribType, SkSLType::kFloat2};
Chris Dalton49d14e92018-07-27 12:38:35 -060063
Chris Dalton49d14e92018-07-27 12:38:35 -060064////////////////////////////////////////////////////////////////////////////////////////////////////
65// SkSL code.
66
67class ClockwiseTestProcessor : public GrGeometryProcessor {
68public:
Robert Phillips5d07c522019-11-18 11:19:51 -050069 static GrGeometryProcessor* Make(SkArenaAlloc* arena, bool readSkFragCoord) {
Mike Kleinf1241082020-12-14 15:59:09 -060070 return arena->make([&](void* ptr) {
71 return new (ptr) ClockwiseTestProcessor(readSkFragCoord);
72 });
Robert Phillipsdf70f152019-11-15 14:57:05 -050073 }
74
75 const char* name() const final { return "ClockwiseTestProcessor"; }
76
Greg Danielcdeb0922021-12-20 12:37:56 -050077 void addToKey(const GrShaderCaps&, skgpu::KeyBuilder* b) const final {
Robert Phillipsdf70f152019-11-15 14:57:05 -050078 b->add32(fReadSkFragCoord);
79 }
80
Brian Salomonf95940b2021-08-09 15:56:24 -040081 std::unique_ptr<ProgramImpl> makeProgramImpl(const GrShaderCaps&) const final;
Robert Phillipsdf70f152019-11-15 14:57:05 -050082
Robert Phillips5d07c522019-11-18 11:19:51 -050083 bool readSkFragCoord() const { return fReadSkFragCoord; }
84
Robert Phillipsdf70f152019-11-15 14:57:05 -050085private:
Chris Dalton49d14e92018-07-27 12:38:35 -060086 ClockwiseTestProcessor(bool readSkFragCoord)
87 : GrGeometryProcessor(kClockwiseTestProcessor_ClassID)
88 , fReadSkFragCoord(readSkFragCoord) {
Brian Salomondd9ef452021-12-16 16:14:56 -050089 this->setVertexAttributesWithImplicitOffsets(&gVertex, 1);
Chris Dalton49d14e92018-07-27 12:38:35 -060090 }
Chris Dalton49d14e92018-07-27 12:38:35 -060091
Chris Dalton49d14e92018-07-27 12:38:35 -060092 const bool fReadSkFragCoord;
93
John Stiles7571f9e2020-09-02 22:42:33 -040094 using INHERITED = GrGeometryProcessor;
Chris Dalton49d14e92018-07-27 12:38:35 -060095};
96
Brian Salomonf95940b2021-08-09 15:56:24 -040097std::unique_ptr<GrGeometryProcessor::ProgramImpl> ClockwiseTestProcessor::makeProgramImpl(
98 const GrShaderCaps&) const {
Brian Salomonbab2d112021-08-11 09:59:56 -040099 class Impl : public ProgramImpl {
100 public:
101 void setData(const GrGLSLProgramDataManager&,
102 const GrShaderCaps&,
103 const GrGeometryProcessor&) override {}
104
105 private:
106 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override {
107 const ClockwiseTestProcessor& proc = args.fGeomProc.cast<ClockwiseTestProcessor>();
108 args.fVaryingHandler->emitAttributes(proc);
Robert Phillips1042c002022-01-21 14:59:22 -0500109 gpArgs->fPositionVar.set(SkSLType::kFloat2, "position");
Brian Salomonbab2d112021-08-11 09:59:56 -0400110 args.fFragBuilder->codeAppendf(
111 "half4 %s = sk_Clockwise ? half4(0,1,0,1) : half4(1,0,0,1);",
112 args.fOutputColor);
113 if (!proc.readSkFragCoord()) {
114 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage);
115 } else {
116 // Verify layout(origin_upper_left) on gl_FragCoord does not affect gl_FrontFacing.
117 args.fFragBuilder->codeAppendf("half4 %s = half4(min(half(sk_FragCoord.y), 1));",
118 args.fOutputCoverage);
119 }
120 }
121 };
122
123 return std::make_unique<Impl>();
Chris Dalton49d14e92018-07-27 12:38:35 -0600124}
125
126////////////////////////////////////////////////////////////////////////////////////////////////////
127// Draw Op.
128
129class ClockwiseTestOp : public GrDrawOp {
130public:
131 DEFINE_OP_CLASS_ID
132
Herb Derbyc76d4092020-10-07 16:46:15 -0400133 static GrOp::Owner Make(GrRecordingContext* context,
134 bool readSkFragCoord, int y = 0) {
135 return GrOp::Make<ClockwiseTestOp>(context, readSkFragCoord, y);
Chris Dalton49d14e92018-07-27 12:38:35 -0600136 }
137
138private:
139 ClockwiseTestOp(bool readSkFragCoord, float y)
Robert Phillips5d07c522019-11-18 11:19:51 -0500140 : GrDrawOp(ClassID())
141 , fReadSkFragCoord(readSkFragCoord)
142 , fY(y) {
Greg Daniel5faf4742019-10-01 15:14:44 -0400143 this->setBounds(SkRect::MakeXYWH(0, fY, 100, 100), HasAABloat::kNo, IsHairline::kNo);
Chris Dalton49d14e92018-07-27 12:38:35 -0600144 }
145
146 const char* name() const override { return "ClockwiseTestOp"; }
147 FixedFunctionFlags fixedFunctionFlags() const override { return FixedFunctionFlags::kNone; }
Chris Dalton57ab06c2021-04-22 12:57:28 -0600148 GrProcessorSet::Analysis finalize(const GrCaps&, const GrAppliedClip*, GrClampType) override {
Chris Dalton4b62aed2019-01-15 11:53:00 -0700149 return GrProcessorSet::EmptySetAnalysis();
Chris Dalton49d14e92018-07-27 12:38:35 -0600150 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500151
Robert Phillipsac6156c2020-02-28 16:02:40 -0500152 GrProgramInfo* createProgramInfo(const GrCaps* caps,
153 SkArenaAlloc* arena,
Adlai Hollere2296f72020-11-19 13:41:26 -0500154 const GrSurfaceProxyView& writeView,
Chris Dalton2a26c502021-08-26 10:05:11 -0600155 bool usesMSAASurface,
Robert Phillipsac6156c2020-02-28 16:02:40 -0500156 GrAppliedClip&& appliedClip,
John Stiles52cb1d02021-06-02 11:58:05 -0400157 const GrDstProxyView& dstProxyView,
Greg Daniel42dbca52020-11-20 10:22:43 -0500158 GrXferBarrierFlags renderPassXferBarriers,
159 GrLoadOp colorLoadOp) const {
Robert Phillipsac6156c2020-02-28 16:02:40 -0500160 GrGeometryProcessor* geomProc = ClockwiseTestProcessor::Make(arena, fReadSkFragCoord);
161
Chris Dalton2a26c502021-08-26 10:05:11 -0600162 return sk_gpu_test::CreateProgramInfo(caps, arena, writeView, usesMSAASurface,
Robert Phillipsac6156c2020-02-28 16:02:40 -0500163 std::move(appliedClip), dstProxyView,
164 geomProc, SkBlendMode::kPlus,
Greg Danield358cbe2020-09-11 09:33:54 -0400165 GrPrimitiveType::kTriangleStrip,
Greg Daniel42dbca52020-11-20 10:22:43 -0500166 renderPassXferBarriers, colorLoadOp);
Robert Phillipsac6156c2020-02-28 16:02:40 -0500167 }
168
169 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const {
170 return this->createProgramInfo(&flushState->caps(),
171 flushState->allocator(),
Brian Salomon8afde5f2020-04-01 16:22:00 -0400172 flushState->writeView(),
Chris Dalton2a26c502021-08-26 10:05:11 -0600173 flushState->usesMSAASurface(),
Robert Phillipsac6156c2020-02-28 16:02:40 -0500174 flushState->detachAppliedClip(),
Greg Danield358cbe2020-09-11 09:33:54 -0400175 flushState->dstProxyView(),
Greg Daniel42dbca52020-11-20 10:22:43 -0500176 flushState->renderPassBarriers(),
177 flushState->colorLoadOp());
Robert Phillipsac6156c2020-02-28 16:02:40 -0500178 }
179
Robert Phillipsdf70f152019-11-15 14:57:05 -0500180 void onPrePrepare(GrRecordingContext* context,
Adlai Hollere2296f72020-11-19 13:41:26 -0500181 const GrSurfaceProxyView& writeView,
Robert Phillips34cea002019-11-21 16:02:34 -0500182 GrAppliedClip* clip,
John Stiles52cb1d02021-06-02 11:58:05 -0400183 const GrDstProxyView& dstProxyView,
Greg Daniel42dbca52020-11-20 10:22:43 -0500184 GrXferBarrierFlags renderPassXferBarriers,
185 GrLoadOp colorLoadOp) final {
Robert Phillipsd4fb7c72019-11-15 17:28:37 -0500186 SkArenaAlloc* arena = context->priv().recordTimeAllocator();
Robert Phillipsdf70f152019-11-15 14:57:05 -0500187
Chris Dalton2a26c502021-08-26 10:05:11 -0600188 // DMSAA is not supported on DDL.
189 bool usesMSAASurface = writeView.asRenderTargetProxy()->numSamples() > 1;
190
Robert Phillips34cea002019-11-21 16:02:34 -0500191 // This is equivalent to a GrOpFlushState::detachAppliedClip
Michael Ludwigd1d997e2020-06-04 15:52:44 -0400192 GrAppliedClip appliedClip = clip ? std::move(*clip) : GrAppliedClip::Disabled();
Robert Phillipsdf70f152019-11-15 14:57:05 -0500193
Brian Salomon8afde5f2020-04-01 16:22:00 -0400194 fProgramInfo = this->createProgramInfo(context->priv().caps(), arena, writeView,
Chris Dalton2a26c502021-08-26 10:05:11 -0600195 usesMSAASurface, std::move(appliedClip),
196 dstProxyView, renderPassXferBarriers, colorLoadOp);
Robert Phillipsdf70f152019-11-15 14:57:05 -0500197
Robert Phillipsac6156c2020-02-28 16:02:40 -0500198 context->priv().recordProgramInfo(fProgramInfo);
Robert Phillipsdf70f152019-11-15 14:57:05 -0500199 }
200
Greg Danielf793de12019-09-05 13:23:23 -0400201 void onPrepare(GrOpFlushState* flushState) override {
Chris Dalton49d14e92018-07-27 12:38:35 -0600202 SkPoint vertices[4] = {
203 {100, fY},
204 {0, fY+100},
205 {0, fY},
206 {100, fY+100},
207 };
Brian Salomon9c9ef382022-05-26 19:33:20 -0400208 fVertexBuffer = flushState->resourceProvider()->createBuffer(vertices,
209 sizeof(vertices),
210 GrGpuBufferType::kVertex,
211 kStatic_GrAccessPattern);
Greg Danielf793de12019-09-05 13:23:23 -0400212 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500213
Greg Danielf793de12019-09-05 13:23:23 -0400214 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override {
215 if (!fVertexBuffer) {
Chris Dalton79f99f72018-07-27 14:15:10 -0600216 return;
217 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500218
Robert Phillips34cea002019-11-21 16:02:34 -0500219 if (!fProgramInfo) {
Robert Phillipsac6156c2020-02-28 16:02:40 -0500220 fProgramInfo = this->createProgramInfo(flushState);
Robert Phillips34cea002019-11-21 16:02:34 -0500221 }
222
Chris Daltonaa0e45c2020-03-16 10:05:11 -0600223 flushState->bindPipeline(*fProgramInfo, SkRect::MakeXYWH(0, fY, 100, 100));
Greg Daniel426274b2020-07-20 11:37:38 -0400224 flushState->bindBuffers(nullptr, nullptr, std::move(fVertexBuffer));
Chris Daltonaa0e45c2020-03-16 10:05:11 -0600225 flushState->draw(4, 0);
Chris Dalton49d14e92018-07-27 12:38:35 -0600226 }
227
Robert Phillips5d07c522019-11-18 11:19:51 -0500228 sk_sp<GrBuffer> fVertexBuffer;
229 const bool fReadSkFragCoord;
230 const float fY;
Robert Phillipsdf70f152019-11-15 14:57:05 -0500231
Robert Phillips787fd9d2021-03-22 14:48:09 -0400232 // The program info (and both the GrPipeline and GrGeometryProcessor it relies on), when
Robert Phillips34cea002019-11-21 16:02:34 -0500233 // allocated, are allocated in either the ddl-record-time or flush-time arena. It is the
234 // arena's job to free up their memory so we just have a bare programInfo pointer here. We
Robert Phillips787fd9d2021-03-22 14:48:09 -0400235 // don't even store the GrPipeline and GrGeometryProcessor pointers here bc they are
Robert Phillips34cea002019-11-21 16:02:34 -0500236 // guaranteed to have the same lifetime as the program info.
Robert Phillips5d07c522019-11-18 11:19:51 -0500237 GrProgramInfo* fProgramInfo = nullptr;
Chris Dalton49d14e92018-07-27 12:38:35 -0600238
Herb Derbyc76d4092020-10-07 16:46:15 -0400239 friend class ::GrOp; // for ctor
Robert Phillips5d07c522019-11-18 11:19:51 -0500240
John Stiles7571f9e2020-09-02 22:42:33 -0400241 using INHERITED = GrDrawOp;
Chris Dalton49d14e92018-07-27 12:38:35 -0600242};
243
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400244} // namespace
245
Chris Dalton49d14e92018-07-27 12:38:35 -0600246////////////////////////////////////////////////////////////////////////////////////////////////////
247// Test.
248
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400249namespace skiagm {
250
251/**
252 * This is a GPU-backend specific test. It ensures that SkSL properly identifies clockwise-winding
253 * triangles (sk_Clockwise), in terms of to Skia device space, in all backends and with all render
254 * target origins. We draw clockwise triangles green and counter-clockwise red.
255 */
256class ClockwiseGM : public GpuGM {
Leandro Lovisolo24fa2112023-08-15 19:05:17 +0000257 SkString getName() const override { return SkString("clockwise"); }
Leandro Lovisolo8f023882023-08-15 21:13:52 +0000258 SkISize getISize() override { return {300, 200}; }
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400259 DrawResult onDraw(GrRecordingContext*, SkCanvas*, SkString* errorMsg) override;
260};
261
262DrawResult ClockwiseGM::onDraw(GrRecordingContext* rContext, SkCanvas* canvas, SkString* errorMsg) {
Kevin Lubickacdc1082023-06-09 11:05:24 -0400263 auto sdc = skgpu::ganesh::TopDeviceSurfaceDrawContext(canvas);
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400264 if (!sdc) {
265 *errorMsg = kErrorMsg_DrawSkippedGpuOnly;
266 return DrawResult::kSkip;
267 }
268
Robert Phillipsedcd4312021-06-03 10:14:16 -0400269 sdc->clear(SK_PMColor4fBLACK);
Chris Dalton49d14e92018-07-27 12:38:35 -0600270
271 // Draw the test directly to the frame buffer.
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400272 sdc->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
273 sdc->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Chris Dalton49d14e92018-07-27 12:38:35 -0600274
275 // Draw the test to an off-screen, top-down render target.
Robert Phillips4dca8312021-07-28 15:13:20 -0400276 GrColorType sdcColorType = sdc->colorInfo().colorType();
Kevin Lubickf24283f2023-03-17 16:10:23 -0400277 if (auto topLeftSDC = skgpu::ganesh::SurfaceDrawContext::Make(rContext,
278 sdcColorType,
279 nullptr,
280 SkBackingFit::kExact,
281 {100, 200},
282 SkSurfaceProps(),
283 /*label=*/{},
Robert Phillipsaddbff52023-08-03 15:48:53 -0400284 /* sampleCnt= */ 1,
Kevin Lubickdf73d162023-09-11 11:56:53 -0400285 skgpu::Mipmapped::kNo,
Kevin Lubickf24283f2023-03-17 16:10:23 -0400286 GrProtected::kNo,
287 kTopLeft_GrSurfaceOrigin,
288 skgpu::Budgeted::kYes)) {
Robert Phillips4dca8312021-07-28 15:13:20 -0400289 topLeftSDC->clear(SK_PMColor4fTRANSPARENT);
290 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
291 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Robert Phillipsedcd4312021-06-03 10:14:16 -0400292 sdc->drawTexture(nullptr,
Robert Phillips4dca8312021-07-28 15:13:20 -0400293 topLeftSDC->readSurfaceView(),
Robert Phillipsedcd4312021-06-03 10:14:16 -0400294 sdc->colorInfo().alphaType(),
Brian Salomone69b9ef2020-07-22 11:18:06 -0400295 GrSamplerState::Filter::kNearest,
296 GrSamplerState::MipmapMode::kNone,
297 SkBlendMode::kSrcOver,
298 SK_PMColor4fWHITE,
299 {0, 0, 100, 200},
300 {100, 0, 200, 200},
Brian Salomone69b9ef2020-07-22 11:18:06 -0400301 GrQuadAAFlags::kNone,
302 SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint,
303 SkMatrix::I(),
Brian Osman3d139a42018-11-19 10:42:10 -0500304 nullptr);
Chris Dalton49d14e92018-07-27 12:38:35 -0600305 }
306
307 // Draw the test to an off-screen, bottom-up render target.
Kevin Lubickf24283f2023-03-17 16:10:23 -0400308 if (auto topLeftSDC = skgpu::ganesh::SurfaceDrawContext::Make(rContext,
309 sdcColorType,
310 nullptr,
311 SkBackingFit::kExact,
312 {100, 200},
313 SkSurfaceProps(),
Robert Phillipsaddbff52023-08-03 15:48:53 -0400314 /*label=*/{})) {
Robert Phillips4dca8312021-07-28 15:13:20 -0400315 topLeftSDC->clear(SK_PMColor4fTRANSPARENT);
316 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
317 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Robert Phillipsedcd4312021-06-03 10:14:16 -0400318 sdc->drawTexture(nullptr,
Robert Phillips4dca8312021-07-28 15:13:20 -0400319 topLeftSDC->readSurfaceView(),
Robert Phillipsedcd4312021-06-03 10:14:16 -0400320 sdc->colorInfo().alphaType(),
Brian Salomone69b9ef2020-07-22 11:18:06 -0400321 GrSamplerState::Filter::kNearest,
322 GrSamplerState::MipmapMode::kNone,
323 SkBlendMode::kSrcOver,
324 SK_PMColor4fWHITE,
325 {0, 0, 100, 200},
326 {200, 0, 300, 200},
Brian Salomone69b9ef2020-07-22 11:18:06 -0400327 GrQuadAAFlags::kNone,
328 SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint,
329 SkMatrix::I(),
Brian Osman3d139a42018-11-19 10:42:10 -0500330 nullptr);
Chris Dalton49d14e92018-07-27 12:38:35 -0600331 }
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400332
333 return DrawResult::kOk;
Chris Dalton49d14e92018-07-27 12:38:35 -0600334}
335
336////////////////////////////////////////////////////////////////////////////////////////////////////
337
338DEF_GM( return new ClockwiseGM(); )
339
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400340} // namespace skiagm