DescriptionEliminate 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
Committed: https://skia.googlesource.com/skia/+/00d6e515e5835f7df6163ceb5f5ceb1770552bf7
Patch Set 1 #Patch Set 2 : Remove unused SkLayerDrawLooper::fTopRec #
Dependent Patchsets: Messages
Total messages: 15 (6 generated)
|