aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/effects/SkLightingImageFilter.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-07-28 10:16:29 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-07-28 14:39:57 +0000
commit6b17ff664ea8ead5a5d3e83436772dd0286603f5 (patch)
tree5c4bc742fc30b4df3ef676617f0d8fbc050a0eba /include/effects/SkLightingImageFilter.h
parent13054a04b334b489e3535681b224cfbacddfb7ea (diff)
Implement clone for GrLightingEffect descendants
Also use sk_sp for ref management of owned light object. Change-Id: I2fa8427a9374351996c09f992f74cc83008605f1 Reviewed-on: https://skia-review.googlesource.com/28040 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'include/effects/SkLightingImageFilter.h')
-rw-r--r--include/effects/SkLightingImageFilter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/effects/SkLightingImageFilter.h b/include/effects/SkLightingImageFilter.h
index 19aca62bb6..ce941bc124 100644
--- a/include/effects/SkLightingImageFilter.h
+++ b/include/effects/SkLightingImageFilter.h
@@ -48,6 +48,7 @@ protected:
const CropRect* cropRect);
void flatten(SkWriteBuffer&) const override;
const SkImageFilterLight* light() const { return fLight.get(); }
+ inline sk_sp<const SkImageFilterLight> refLight() const;
SkScalar surfaceScale() const { return fSurfaceScale; }
bool affectsTransparentBlack() const override { return true; }