Bug 984761 - Allow setting the primitive type of FilterPrimitiveDescriptions after construction. r=roc

This commit is contained in:
Markus Stange 2014-03-20 10:12:45 +08:00
Родитель 17a4ded987
Коммит e7ded060a1
2 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1535,6 +1535,13 @@ FilterSupport::ComputeSourceNeededRegions(const FilterDescription& aFilter,
// FilterPrimitiveDescription
FilterPrimitiveDescription::FilterPrimitiveDescription()
: mType(PrimitiveType::Empty)
, mOutputColorSpace(ColorSpace::SRGB)
, mIsTainted(false)
{
}
FilterPrimitiveDescription::FilterPrimitiveDescription(PrimitiveType aType)
: mType(aType)
, mOutputColorSpace(ColorSpace::SRGB)

Просмотреть файл

@ -288,11 +288,13 @@ public:
kPrimitiveIndexStrokePaint = -4
};
FilterPrimitiveDescription();
FilterPrimitiveDescription(PrimitiveType aType);
FilterPrimitiveDescription(const FilterPrimitiveDescription& aOther);
FilterPrimitiveDescription& operator=(const FilterPrimitiveDescription& aOther);
PrimitiveType Type() const { return mType; }
void SetType(PrimitiveType aType) { mType = aType; }
const AttributeMap& Attributes() const { return mAttributes; }
AttributeMap& Attributes() { return mAttributes; }