• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright 2019 Google LLC
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 
8 #include "SkReflected.h"
9 
10 #include "SkCurve.h"
11 
12 SkSTArray<16, const SkReflected::Type*, true> SkReflected::gTypes;
13 
VisitTypes(std::function<void (const Type *)> visitor)14 void SkReflected::VisitTypes(std::function<void(const Type*)> visitor) {
15     for (const Type* type : gTypes) {
16         visitor(type);
17     }
18 }
19 
visit(const char * name,SkCurve & c)20 void SkFieldVisitor::visit(const char* name, SkCurve& c) {
21     this->enterObject(name);
22     c.visitFields(this);
23     this->exitObject();
24 }
25