aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkLayerDrawLooper.cpp
diff options
context:
space:
mode:
authorGravatar mdempsky <mdempsky@chromium.org>2015-09-24 15:04:45 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-24 15:04:45 -0700
commit00d6e515e5835f7df6163ceb5f5ceb1770552bf7 (patch)
tree33e26b1cb307b54eae83a87c1bdaafd0691011c1 /src/effects/SkLayerDrawLooper.cpp
parent8db65a6d0c60d0e31eadc64d427f6e7f050e1140 (diff)
Eliminate some clutter in SkFlattenable
The Registrar class is unnecessary, as SkFlattenable factory registration is now handled via initialization routines that can just call the Register function directly. Also, no need to lazily initialize gCount to 0, as initializing an int to a constant value does not require dynamic initialization. (C++ actually guarantees zero initialization of global ints anyway, but existing practice in Skia appears to favor the explicit "= 0"). Relatedly, this requires removing the unused/unimplemented SkLayerDrawLooper::MyRegistrar class. And removing that allows Clang to realize that SkLayerDrawLooper::fTopRec is unneeded too, so remove that too to squelch the compiler warning/error. This doesn't change any public API. TBR=reed@google.com Review URL: https://codereview.chromium.org/1361323002
Diffstat (limited to 'src/effects/SkLayerDrawLooper.cpp')
-rw-r--r--src/effects/SkLayerDrawLooper.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/effects/SkLayerDrawLooper.cpp b/src/effects/SkLayerDrawLooper.cpp
index b5f26a3811..bca65ef77a 100644
--- a/src/effects/SkLayerDrawLooper.cpp
+++ b/src/effects/SkLayerDrawLooper.cpp
@@ -23,7 +23,6 @@ SkLayerDrawLooper::LayerInfo::LayerInfo() {
SkLayerDrawLooper::SkLayerDrawLooper()
: fRecs(nullptr),
- fTopRec(nullptr),
fCount(0) {
}