ccacfa02d2
Update MotionTileEffect to avoid rebuilding shaders redundantly, at render time: 1) build all shaders at revalidation time 2) cache the layer content picture separately, and only rebuild when the layer content changes To support #2, add some SG helpers for querying subtree inval state. With this change, we avoid all render time allocations. Notry: true Change-Id: I55a1f95752704af6a667b266e725492de6640387 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/226512 Commit-Queue: Florin Malita <fmalita@chromium.org> Commit-Queue: Mike Reed <reed@google.com> Auto-Submit: Florin Malita <fmalita@chromium.org> Reviewed-by: Mike Reed <reed@google.com>
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
# Copyright 2018 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# Things are easiest for everyone if these source paths are absolute.
|
|
_src = get_path_info("src", "abspath")
|
|
|
|
skia_sksg_sources = [
|
|
"$_src/SkSGClipEffect.cpp",
|
|
"$_src/SkSGColorFilter.cpp",
|
|
"$_src/SkSGDraw.cpp",
|
|
"$_src/SkSGEffectNode.cpp",
|
|
"$_src/SkSGGeometryNode.cpp",
|
|
"$_src/SkSGGeometryTransform.cpp",
|
|
"$_src/SkSGGradient.cpp",
|
|
"$_src/SkSGGroup.cpp",
|
|
"$_src/SkSGImage.cpp",
|
|
"$_src/SkSGInvalidationController.cpp",
|
|
"$_src/SkSGMaskEffect.cpp",
|
|
"$_src/SkSGMerge.cpp",
|
|
"$_src/SkSGNode.cpp",
|
|
"$_src/SkSGNodePriv.h",
|
|
"$_src/SkSGOpacityEffect.cpp",
|
|
"$_src/SkSGPaint.cpp",
|
|
"$_src/SkSGPath.cpp",
|
|
"$_src/SkSGPlane.cpp",
|
|
"$_src/SkSGRect.cpp",
|
|
"$_src/SkSGRenderEffect.cpp",
|
|
"$_src/SkSGRenderNode.cpp",
|
|
"$_src/SkSGRoundEffect.cpp",
|
|
"$_src/SkSGScene.cpp",
|
|
"$_src/SkSGText.cpp",
|
|
"$_src/SkSGTransform.cpp",
|
|
"$_src/SkSGTransformPriv.h",
|
|
"$_src/SkSGTrimEffect.cpp",
|
|
]
|