mirror of
https://github.com/thead-yocto-mirror/skia
synced 2026-08-15 22:58:21 +02:00
25 lines
589 B
C++
25 lines
589 B
C++
/*
|
|
* Copyright 2019 Google LLC
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#include "modules/particles/include/SkReflected.h"
|
|
|
|
#include "modules/particles/include/SkCurve.h"
|
|
|
|
SkSTArray<16, const SkReflected::Type*, true> SkReflected::gTypes;
|
|
|
|
void SkReflected::VisitTypes(std::function<void(const Type*)> visitor) {
|
|
for (const Type* type : gTypes) {
|
|
visitor(type);
|
|
}
|
|
}
|
|
|
|
void SkFieldVisitor::visit(const char* name, SkCurve& c) {
|
|
this->enterObject(name);
|
|
c.visitFields(this);
|
|
this->exitObject();
|
|
}
|