blob: f993ecd8fc338bda13c77eac091df2845897a1ef [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/GrTypesPriv.h"
22#include "include/private/SkColorData.h"
Robert Phillips7a0d3c32021-07-21 15:39:51 -040023#include "src/core/SkCanvasPriv.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040024#include "src/gpu/GrBuffer.h"
25#include "src/gpu/GrCaps.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040026#include "src/gpu/GrColorSpaceXform.h"
Adlai Hollera0693042020-10-14 11:23:11 -040027#include "src/gpu/GrDirectContextPriv.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040028#include "src/gpu/GrGeometryProcessor.h"
29#include "src/gpu/GrGpuBuffer.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050030#include "src/gpu/GrMemoryPool.h"
31#include "src/gpu/GrOpFlushState.h"
Greg Daniel2d41d0d2019-08-26 11:08:51 -040032#include "src/gpu/GrOpsRenderPass.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040033#include "src/gpu/GrPipeline.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040034#include "src/gpu/GrProcessor.h"
35#include "src/gpu/GrProcessorSet.h"
Robert Phillips901aff02019-10-08 12:32:56 -040036#include "src/gpu/GrProgramInfo.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050037#include "src/gpu/GrRecordingContextPriv.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040038#include "src/gpu/GrResourceProvider.h"
Brian Salomon201cdbb2019-08-14 17:00:30 -040039#include "src/gpu/GrSamplerState.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040040#include "src/gpu/GrShaderCaps.h"
41#include "src/gpu/GrShaderVar.h"
Greg Danielf91aeb22019-06-18 09:58:02 -040042#include "src/gpu/GrSurfaceProxy.h"
43#include "src/gpu/GrTextureProxy.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050044#include "src/gpu/glsl/GrGLSLFragmentShaderBuilder.h"
45#include "src/gpu/glsl/GrGLSLGeometryProcessor.h"
46#include "src/gpu/glsl/GrGLSLVarying.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040047#include "src/gpu/ops/GrDrawOp.h"
48#include "src/gpu/ops/GrOp.h"
Robert Phillips4dca8312021-07-28 15:13:20 -040049#include "src/gpu/v1/SurfaceDrawContext_v1.h"
Robert Phillips34cea002019-11-21 16:02:34 -050050#include "tools/gpu/ProxyUtils.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -040051
52#include <memory>
53#include <utility>
54
55class GrAppliedClip;
56class GrGLSLProgramDataManager;
Chris Dalton49d14e92018-07-27 12:38:35 -060057
Hal Canaryfa3305a2019-07-18 12:36:54 -040058namespace {
Chris Dalton49d14e92018-07-27 12:38:35 -060059
Brian Osmand4c29702018-09-14 16:16:55 -040060static constexpr GrGeometryProcessor::Attribute gVertex =
Stephen White1e1ad8d2019-06-19 14:19:47 -040061 {"position", kFloat2_GrVertexAttribType, kFloat2_GrSLType};
Chris Dalton49d14e92018-07-27 12:38:35 -060062
Chris Dalton49d14e92018-07-27 12:38:35 -060063////////////////////////////////////////////////////////////////////////////////////////////////////
64// SkSL code.
65
66class ClockwiseTestProcessor : public GrGeometryProcessor {
67public:
Robert Phillips5d07c522019-11-18 11:19:51 -050068 static GrGeometryProcessor* Make(SkArenaAlloc* arena, bool readSkFragCoord) {
Mike Kleinf1241082020-12-14 15:59:09 -060069 return arena->make([&](void* ptr) {
70 return new (ptr) ClockwiseTestProcessor(readSkFragCoord);
71 });
Robert Phillipsdf70f152019-11-15 14:57:05 -050072 }
73
74 const char* name() const final { return "ClockwiseTestProcessor"; }
75
Brian Salomon13b28732021-08-06 15:33:58 -040076 void addToKey(const GrShaderCaps&, GrProcessorKeyBuilder* b) const final {
Robert Phillipsdf70f152019-11-15 14:57:05 -050077 b->add32(fReadSkFragCoord);
78 }
79
Brian Salomonf95940b2021-08-09 15:56:24 -040080 std::unique_ptr<ProgramImpl> makeProgramImpl(const GrShaderCaps&) const final;
Robert Phillipsdf70f152019-11-15 14:57:05 -050081
Robert Phillips5d07c522019-11-18 11:19:51 -050082 bool readSkFragCoord() const { return fReadSkFragCoord; }
83
Robert Phillipsdf70f152019-11-15 14:57:05 -050084private:
Chris Dalton49d14e92018-07-27 12:38:35 -060085 ClockwiseTestProcessor(bool readSkFragCoord)
86 : GrGeometryProcessor(kClockwiseTestProcessor_ClassID)
87 , fReadSkFragCoord(readSkFragCoord) {
Brian Osmanf04fb3c2018-11-12 15:34:00 -050088 this->setVertexAttributes(&gVertex, 1);
Chris Dalton49d14e92018-07-27 12:38:35 -060089 }
Chris Dalton49d14e92018-07-27 12:38:35 -060090
Chris Dalton49d14e92018-07-27 12:38:35 -060091 const bool fReadSkFragCoord;
92
John Stiles7571f9e2020-09-02 22:42:33 -040093 using INHERITED = GrGeometryProcessor;
Chris Dalton49d14e92018-07-27 12:38:35 -060094};
95
Brian Salomonf95940b2021-08-09 15:56:24 -040096class GLSLClockwiseTestProcessor : public GrGeometryProcessor::ProgramImpl {
Brian Salomon5a328282021-04-14 10:32:25 -040097 void setData(const GrGLSLProgramDataManager&,
98 const GrShaderCaps&,
99 const GrGeometryProcessor&) override {}
Chris Dalton49d14e92018-07-27 12:38:35 -0600100
101 void onEmitCode(EmitArgs& args, GrGPArgs* gpArgs) override {
Robert Phillips787fd9d2021-03-22 14:48:09 -0400102 const ClockwiseTestProcessor& proc = args.fGeomProc.cast<ClockwiseTestProcessor>();
Chris Dalton49d14e92018-07-27 12:38:35 -0600103 args.fVaryingHandler->emitAttributes(proc);
Stephen White1e1ad8d2019-06-19 14:19:47 -0400104 gpArgs->fPositionVar.set(kFloat2_GrSLType, "position");
Chris Dalton49d14e92018-07-27 12:38:35 -0600105 args.fFragBuilder->codeAppendf(
John Stiles4d7ac492021-03-09 20:16:43 -0500106 "half4 %s = sk_Clockwise ? half4(0,1,0,1) : half4(1,0,0,1);",
107 args.fOutputColor);
Robert Phillips5d07c522019-11-18 11:19:51 -0500108 if (!proc.readSkFragCoord()) {
John Stiles4d7ac492021-03-09 20:16:43 -0500109 args.fFragBuilder->codeAppendf("const half4 %s = half4(1);", args.fOutputCoverage);
Chris Dalton49d14e92018-07-27 12:38:35 -0600110 } else {
111 // Verify layout(origin_upper_left) on gl_FragCoord does not affect gl_FrontFacing.
John Stiles4d7ac492021-03-09 20:16:43 -0500112 args.fFragBuilder->codeAppendf("half4 %s = half4(min(half(sk_FragCoord.y), 1));",
Chris Dalton49d14e92018-07-27 12:38:35 -0600113 args.fOutputCoverage);
114 }
115 }
116};
117
Brian Salomonf95940b2021-08-09 15:56:24 -0400118std::unique_ptr<GrGeometryProcessor::ProgramImpl> ClockwiseTestProcessor::makeProgramImpl(
119 const GrShaderCaps&) const {
120 return std::make_unique<GLSLClockwiseTestProcessor>();
Chris Dalton49d14e92018-07-27 12:38:35 -0600121}
122
123////////////////////////////////////////////////////////////////////////////////////////////////////
124// Draw Op.
125
126class ClockwiseTestOp : public GrDrawOp {
127public:
128 DEFINE_OP_CLASS_ID
129
Herb Derbyc76d4092020-10-07 16:46:15 -0400130 static GrOp::Owner Make(GrRecordingContext* context,
131 bool readSkFragCoord, int y = 0) {
132 return GrOp::Make<ClockwiseTestOp>(context, readSkFragCoord, y);
Chris Dalton49d14e92018-07-27 12:38:35 -0600133 }
134
135private:
136 ClockwiseTestOp(bool readSkFragCoord, float y)
Robert Phillips5d07c522019-11-18 11:19:51 -0500137 : GrDrawOp(ClassID())
138 , fReadSkFragCoord(readSkFragCoord)
139 , fY(y) {
Greg Daniel5faf4742019-10-01 15:14:44 -0400140 this->setBounds(SkRect::MakeXYWH(0, fY, 100, 100), HasAABloat::kNo, IsHairline::kNo);
Chris Dalton49d14e92018-07-27 12:38:35 -0600141 }
142
143 const char* name() const override { return "ClockwiseTestOp"; }
144 FixedFunctionFlags fixedFunctionFlags() const override { return FixedFunctionFlags::kNone; }
Chris Dalton57ab06c2021-04-22 12:57:28 -0600145 GrProcessorSet::Analysis finalize(const GrCaps&, const GrAppliedClip*, GrClampType) override {
Chris Dalton4b62aed2019-01-15 11:53:00 -0700146 return GrProcessorSet::EmptySetAnalysis();
Chris Dalton49d14e92018-07-27 12:38:35 -0600147 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500148
Robert Phillipsac6156c2020-02-28 16:02:40 -0500149 GrProgramInfo* createProgramInfo(const GrCaps* caps,
150 SkArenaAlloc* arena,
Adlai Hollere2296f72020-11-19 13:41:26 -0500151 const GrSurfaceProxyView& writeView,
Robert Phillipsac6156c2020-02-28 16:02:40 -0500152 GrAppliedClip&& appliedClip,
John Stiles52cb1d02021-06-02 11:58:05 -0400153 const GrDstProxyView& dstProxyView,
Greg Daniel42dbca52020-11-20 10:22:43 -0500154 GrXferBarrierFlags renderPassXferBarriers,
155 GrLoadOp colorLoadOp) const {
Robert Phillipsac6156c2020-02-28 16:02:40 -0500156 GrGeometryProcessor* geomProc = ClockwiseTestProcessor::Make(arena, fReadSkFragCoord);
157
Brian Salomon8afde5f2020-04-01 16:22:00 -0400158 return sk_gpu_test::CreateProgramInfo(caps, arena, writeView,
Robert Phillipsac6156c2020-02-28 16:02:40 -0500159 std::move(appliedClip), dstProxyView,
160 geomProc, SkBlendMode::kPlus,
Greg Danield358cbe2020-09-11 09:33:54 -0400161 GrPrimitiveType::kTriangleStrip,
Greg Daniel42dbca52020-11-20 10:22:43 -0500162 renderPassXferBarriers, colorLoadOp);
Robert Phillipsac6156c2020-02-28 16:02:40 -0500163 }
164
165 GrProgramInfo* createProgramInfo(GrOpFlushState* flushState) const {
166 return this->createProgramInfo(&flushState->caps(),
167 flushState->allocator(),
Brian Salomon8afde5f2020-04-01 16:22:00 -0400168 flushState->writeView(),
Robert Phillipsac6156c2020-02-28 16:02:40 -0500169 flushState->detachAppliedClip(),
Greg Danield358cbe2020-09-11 09:33:54 -0400170 flushState->dstProxyView(),
Greg Daniel42dbca52020-11-20 10:22:43 -0500171 flushState->renderPassBarriers(),
172 flushState->colorLoadOp());
Robert Phillipsac6156c2020-02-28 16:02:40 -0500173 }
174
Robert Phillipsdf70f152019-11-15 14:57:05 -0500175 void onPrePrepare(GrRecordingContext* context,
Adlai Hollere2296f72020-11-19 13:41:26 -0500176 const GrSurfaceProxyView& writeView,
Robert Phillips34cea002019-11-21 16:02:34 -0500177 GrAppliedClip* clip,
John Stiles52cb1d02021-06-02 11:58:05 -0400178 const GrDstProxyView& dstProxyView,
Greg Daniel42dbca52020-11-20 10:22:43 -0500179 GrXferBarrierFlags renderPassXferBarriers,
180 GrLoadOp colorLoadOp) final {
Robert Phillipsd4fb7c72019-11-15 17:28:37 -0500181 SkArenaAlloc* arena = context->priv().recordTimeAllocator();
Robert Phillipsdf70f152019-11-15 14:57:05 -0500182
Robert Phillips34cea002019-11-21 16:02:34 -0500183 // This is equivalent to a GrOpFlushState::detachAppliedClip
Michael Ludwigd1d997e2020-06-04 15:52:44 -0400184 GrAppliedClip appliedClip = clip ? std::move(*clip) : GrAppliedClip::Disabled();
Robert Phillipsdf70f152019-11-15 14:57:05 -0500185
Brian Salomon8afde5f2020-04-01 16:22:00 -0400186 fProgramInfo = this->createProgramInfo(context->priv().caps(), arena, writeView,
Greg Danield358cbe2020-09-11 09:33:54 -0400187 std::move(appliedClip), dstProxyView,
Greg Daniel42dbca52020-11-20 10:22:43 -0500188 renderPassXferBarriers, colorLoadOp);
Robert Phillipsdf70f152019-11-15 14:57:05 -0500189
Robert Phillipsac6156c2020-02-28 16:02:40 -0500190 context->priv().recordProgramInfo(fProgramInfo);
Robert Phillipsdf70f152019-11-15 14:57:05 -0500191 }
192
Greg Danielf793de12019-09-05 13:23:23 -0400193 void onPrepare(GrOpFlushState* flushState) override {
Chris Dalton49d14e92018-07-27 12:38:35 -0600194 SkPoint vertices[4] = {
195 {100, fY},
196 {0, fY+100},
197 {0, fY},
198 {100, fY+100},
199 };
Greg Danielf793de12019-09-05 13:23:23 -0400200 fVertexBuffer = flushState->resourceProvider()->createBuffer(
201 sizeof(vertices), GrGpuBufferType::kVertex, kStatic_GrAccessPattern, vertices);
202 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500203
Greg Danielf793de12019-09-05 13:23:23 -0400204 void onExecute(GrOpFlushState* flushState, const SkRect& chainBounds) override {
205 if (!fVertexBuffer) {
Chris Dalton79f99f72018-07-27 14:15:10 -0600206 return;
207 }
Robert Phillipsdf70f152019-11-15 14:57:05 -0500208
Robert Phillips34cea002019-11-21 16:02:34 -0500209 if (!fProgramInfo) {
Robert Phillipsac6156c2020-02-28 16:02:40 -0500210 fProgramInfo = this->createProgramInfo(flushState);
Robert Phillips34cea002019-11-21 16:02:34 -0500211 }
212
Chris Daltonaa0e45c2020-03-16 10:05:11 -0600213 flushState->bindPipeline(*fProgramInfo, SkRect::MakeXYWH(0, fY, 100, 100));
Greg Daniel426274b2020-07-20 11:37:38 -0400214 flushState->bindBuffers(nullptr, nullptr, std::move(fVertexBuffer));
Chris Daltonaa0e45c2020-03-16 10:05:11 -0600215 flushState->draw(4, 0);
Chris Dalton49d14e92018-07-27 12:38:35 -0600216 }
217
Robert Phillips5d07c522019-11-18 11:19:51 -0500218 sk_sp<GrBuffer> fVertexBuffer;
219 const bool fReadSkFragCoord;
220 const float fY;
Robert Phillipsdf70f152019-11-15 14:57:05 -0500221
Robert Phillips787fd9d2021-03-22 14:48:09 -0400222 // The program info (and both the GrPipeline and GrGeometryProcessor it relies on), when
Robert Phillips34cea002019-11-21 16:02:34 -0500223 // allocated, are allocated in either the ddl-record-time or flush-time arena. It is the
224 // 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 -0400225 // don't even store the GrPipeline and GrGeometryProcessor pointers here bc they are
Robert Phillips34cea002019-11-21 16:02:34 -0500226 // guaranteed to have the same lifetime as the program info.
Robert Phillips5d07c522019-11-18 11:19:51 -0500227 GrProgramInfo* fProgramInfo = nullptr;
Chris Dalton49d14e92018-07-27 12:38:35 -0600228
Herb Derbyc76d4092020-10-07 16:46:15 -0400229 friend class ::GrOp; // for ctor
Robert Phillips5d07c522019-11-18 11:19:51 -0500230
John Stiles7571f9e2020-09-02 22:42:33 -0400231 using INHERITED = GrDrawOp;
Chris Dalton49d14e92018-07-27 12:38:35 -0600232};
233
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400234} // namespace
235
Chris Dalton49d14e92018-07-27 12:38:35 -0600236////////////////////////////////////////////////////////////////////////////////////////////////////
237// Test.
238
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400239namespace skiagm {
240
241/**
242 * This is a GPU-backend specific test. It ensures that SkSL properly identifies clockwise-winding
243 * triangles (sk_Clockwise), in terms of to Skia device space, in all backends and with all render
244 * target origins. We draw clockwise triangles green and counter-clockwise red.
245 */
246class ClockwiseGM : public GpuGM {
247 SkString onShortName() override { return SkString("clockwise"); }
248 SkISize onISize() override { return {300, 200}; }
249 DrawResult onDraw(GrRecordingContext*, SkCanvas*, SkString* errorMsg) override;
250};
251
252DrawResult ClockwiseGM::onDraw(GrRecordingContext* rContext, SkCanvas* canvas, SkString* errorMsg) {
253 auto sdc = SkCanvasPriv::TopDeviceSurfaceDrawContext(canvas);
254 if (!sdc) {
255 *errorMsg = kErrorMsg_DrawSkippedGpuOnly;
256 return DrawResult::kSkip;
257 }
258
Robert Phillipsedcd4312021-06-03 10:14:16 -0400259 sdc->clear(SK_PMColor4fBLACK);
Chris Dalton49d14e92018-07-27 12:38:35 -0600260
261 // Draw the test directly to the frame buffer.
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400262 sdc->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
263 sdc->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Chris Dalton49d14e92018-07-27 12:38:35 -0600264
265 // Draw the test to an off-screen, top-down render target.
Robert Phillips4dca8312021-07-28 15:13:20 -0400266 GrColorType sdcColorType = sdc->colorInfo().colorType();
267 if (auto topLeftSDC = skgpu::v1::SurfaceDrawContext::Make(
268 rContext, sdcColorType, nullptr, SkBackingFit::kExact, {100, 200}, SkSurfaceProps(),
Chris Daltonf5b87f92021-04-19 17:27:09 -0600269 1, GrMipmapped::kNo, GrProtected::kNo, kTopLeft_GrSurfaceOrigin,
270 SkBudgeted::kYes)) {
Robert Phillips4dca8312021-07-28 15:13:20 -0400271 topLeftSDC->clear(SK_PMColor4fTRANSPARENT);
272 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
273 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Robert Phillipsedcd4312021-06-03 10:14:16 -0400274 sdc->drawTexture(nullptr,
Robert Phillips4dca8312021-07-28 15:13:20 -0400275 topLeftSDC->readSurfaceView(),
Robert Phillipsedcd4312021-06-03 10:14:16 -0400276 sdc->colorInfo().alphaType(),
Brian Salomone69b9ef2020-07-22 11:18:06 -0400277 GrSamplerState::Filter::kNearest,
278 GrSamplerState::MipmapMode::kNone,
279 SkBlendMode::kSrcOver,
280 SK_PMColor4fWHITE,
281 {0, 0, 100, 200},
282 {100, 0, 200, 200},
283 GrAA::kNo,
284 GrQuadAAFlags::kNone,
285 SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint,
286 SkMatrix::I(),
Brian Osman3d139a42018-11-19 10:42:10 -0500287 nullptr);
Chris Dalton49d14e92018-07-27 12:38:35 -0600288 }
289
290 // Draw the test to an off-screen, bottom-up render target.
Robert Phillips4dca8312021-07-28 15:13:20 -0400291 if (auto topLeftSDC = skgpu::v1::SurfaceDrawContext::Make(
292 rContext, sdcColorType, nullptr, SkBackingFit::kExact, {100, 200}, SkSurfaceProps(),
Chris Daltonf5b87f92021-04-19 17:27:09 -0600293 1, GrMipmapped::kNo, GrProtected::kNo, kBottomLeft_GrSurfaceOrigin,
294 SkBudgeted::kYes)) {
Robert Phillips4dca8312021-07-28 15:13:20 -0400295 topLeftSDC->clear(SK_PMColor4fTRANSPARENT);
296 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, false, 0));
297 topLeftSDC->addDrawOp(ClockwiseTestOp::Make(rContext, true, 100));
Robert Phillipsedcd4312021-06-03 10:14:16 -0400298 sdc->drawTexture(nullptr,
Robert Phillips4dca8312021-07-28 15:13:20 -0400299 topLeftSDC->readSurfaceView(),
Robert Phillipsedcd4312021-06-03 10:14:16 -0400300 sdc->colorInfo().alphaType(),
Brian Salomone69b9ef2020-07-22 11:18:06 -0400301 GrSamplerState::Filter::kNearest,
302 GrSamplerState::MipmapMode::kNone,
303 SkBlendMode::kSrcOver,
304 SK_PMColor4fWHITE,
305 {0, 0, 100, 200},
306 {200, 0, 300, 200},
307 GrAA::kNo,
308 GrQuadAAFlags::kNone,
309 SkCanvas::SrcRectConstraint::kStrict_SrcRectConstraint,
310 SkMatrix::I(),
Brian Osman3d139a42018-11-19 10:42:10 -0500311 nullptr);
Chris Dalton49d14e92018-07-27 12:38:35 -0600312 }
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400313
314 return DrawResult::kOk;
Chris Dalton49d14e92018-07-27 12:38:35 -0600315}
316
317////////////////////////////////////////////////////////////////////////////////////////////////////
318
319DEF_GM( return new ClockwiseGM(); )
320
Robert Phillips7a0d3c32021-07-21 15:39:51 -0400321} // namespace skiagm