/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file.
*/
class SkData; class SkReadBuffer; class SkWriteBuffer; struct SkDeserialProcs; struct SkSerialProcs;
/** \class SkFlattenable
SkFlattenable is the base class for objects that need to be flattened into a data stream for either transport or as part of the key to the font cache.
*/ class SK_API SkFlattenable : public SkRefCnt { public: enum Type {
kSkColorFilter_Type,
kSkBlender_Type,
kSkDrawable_Type,
kSkDrawLooper_Type, // no longer supported by Skia
kSkImageFilter_Type,
kSkMaskFilter_Type,
kSkPathEffect_Type,
kSkShader_Type,
};
/** Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().
*/ virtual Factory getFactory() const = 0;
/** * Returns the name of the object's class.
*/ virtualconstchar* getTypeName() const = 0;
/** * Override this if your subclass needs to record data that it will need to recreate itself * from its CreateProc (returned by getFactory()). * * DEPRECATED public : will move to protected ... use serialize() instead
*/ virtualvoid flatten(SkWriteBuffer&) const {}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.