d6cf56fd34
This reverts commit 6fc4106a9d
.
Reason for revert: Blocking the Android roll
Original change's description:
> [svg] Relocate out of experimental
>
> Move the SVG rendering code to modules/svg, and componentize.
> Also split into include/src/utils.
>
> As external clients still reference the old header locations,
> introduce temporary forwarding headers to facilitate the migration.
>
> Change-Id: Ib289dbdcd80c16a01c47805e7242f2e08bebc165
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/326948
> Reviewed-by: Tyler Denniston <tdenniston@google.com>
> Commit-Queue: Florin Malita <fmalita@google.com>
TBR=fmalita@chromium.org,fmalita@google.com,tdenniston@google.com
Change-Id: I386cf77a15a9e1d392029804abaf937dae53f435
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/327342
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
37 lines
891 B
C++
37 lines
891 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkSVGContainer_DEFINED
|
|
#define SkSVGContainer_DEFINED
|
|
|
|
#include "experimental/svg/model/SkSVGTransformableNode.h"
|
|
#include "include/private/SkTArray.h"
|
|
|
|
class SkSVGContainer : public SkSVGTransformableNode {
|
|
public:
|
|
~SkSVGContainer() override = default;
|
|
|
|
void appendChild(sk_sp<SkSVGNode>) override;
|
|
|
|
protected:
|
|
explicit SkSVGContainer(SkSVGTag);
|
|
|
|
void onRender(const SkSVGRenderContext&) const override;
|
|
|
|
SkPath onAsPath(const SkSVGRenderContext&) const override;
|
|
|
|
bool hasChildren() const final;
|
|
|
|
// TODO: add some sort of child iterator, and hide the container.
|
|
SkSTArray<1, sk_sp<SkSVGNode>, true> fChildren;
|
|
|
|
private:
|
|
using INHERITED = SkSVGTransformableNode;
|
|
};
|
|
|
|
#endif // SkSVGContainer_DEFINED
|