aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/svg/model/SkSVGContainer.cpp
diff options
context:
space:
mode:
authorGravatar borenet <borenet@google.com>2016-09-20 13:39:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-20 13:39:46 -0700
commita5344ee50a643ca72742e065f5268d9cbc3e0c82 (patch)
treeb3db7005bbaf34e9b1c828e0fb83a35c10c03af5 /experimental/svg/model/SkSVGContainer.cpp
parenta627b5c3b9004118621bfa99f3952465adfa4ad6 (diff)
Revert of [SVGDom] Opacity optimization (patchset #4 id:60001 of https://codereview.chromium.org/2353503005/ )
Reason for revert: Failing assertion Original issue's description: > [SVGDom] Opacity optimization > > Apply opacity as fill/stroke paint alpha instead of saveLayer, when > possible. > > R=robertphillips@google.com,stephana@google.com,reed@google.com > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2353503005 > > Committed: https://skia.googlesource.com/skia/+/3dbb7b9f196d793fbd16243157ee67638891f5dc TBR=reed@google.com,robertphillips@google.com,stephana@google.com,fmalita@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review-Url: https://codereview.chromium.org/2359603002
Diffstat (limited to 'experimental/svg/model/SkSVGContainer.cpp')
-rw-r--r--experimental/svg/model/SkSVGContainer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/experimental/svg/model/SkSVGContainer.cpp b/experimental/svg/model/SkSVGContainer.cpp
index af19608d25..4f91b30bab 100644
--- a/experimental/svg/model/SkSVGContainer.cpp
+++ b/experimental/svg/model/SkSVGContainer.cpp
@@ -14,10 +14,6 @@ void SkSVGContainer::appendChild(sk_sp<SkSVGNode> node) {
fChildren.push_back(std::move(node));
}
-bool SkSVGContainer::hasChildren() const {
- return !fChildren.empty();
-}
-
void SkSVGContainer::onRender(const SkSVGRenderContext& ctx) const {
for (int i = 0; i < fChildren.count(); ++i) {
fChildren[i]->render(ctx);