SkDevice* SkCanvas::init(SkDevice* device) {
fBounder = NULL;
+ fLocalBoundsCompareType.setEmpty();
fLocalBoundsCompareTypeDirty = true;
+ fLocalBoundsCompareTypeBW.setEmpty();
fLocalBoundsCompareTypeDirtyBW = true;
fLastDeviceToGainFocus = NULL;
fDeviceCMDirty = false;
fMCRec->fTopLayer = fMCRec->fLayer;
fMCRec->fNext = NULL;
+ fExternalMatrix.reset();
+ fExternalInverse.reset();
fUseExternalMatrix = false;
return this->setDevice(device);
: fMCStack(sizeof(MCRec), fMCRecStorage, sizeof(fMCRecStorage)) {
inc_canvas();
- fDeviceFactory = device->getDeviceFactory();\r
+ fDeviceFactory = device->getDeviceFactory();
SkSafeRef(fDeviceFactory);
this->init(device);
inc_canvas();
SkDevice* device = SkNEW_ARGS(SkDevice, (bitmap));
- fDeviceFactory = device->getDeviceFactory();\r
+ fDeviceFactory = device->getDeviceFactory();
SkSafeRef(fDeviceFactory);
this->init(device)->unref();
size_t fSize;
SkBitmap fBitmap;
- Entry(const void* buffer, size_t size, const SkBitmap& bm) : fBitmap(bm) {
+ Entry(const void* buffer, size_t size, const SkBitmap& bm)
+ : fPrev(NULL),
+ fNext(NULL),
+ fBitmap(bm) {
fBuffer = sk_malloc_throw(size);
fSize = size;
memcpy(fBuffer, buffer, size);
fPostTranslate = false;
}
-SkLayerDrawLooper::SkLayerDrawLooper() {
- fRecs = NULL;
- fCount = 0;
+SkLayerDrawLooper::SkLayerDrawLooper()
+ : fRecs(NULL),
+ fCount(0),
+ fCurrRec(NULL) {
}
SkLayerDrawLooper::~SkLayerDrawLooper() {
}
SkLayerDrawLooper::SkLayerDrawLooper(SkFlattenableReadBuffer& buffer)
- : INHERITED(buffer) {
- fRecs = NULL;
- fCount = 0;
-
+ : INHERITED(buffer),
+ fRecs(NULL),
+ fCount(0),
+ fCurrRec(NULL) {
int count = buffer.readInt();
for (int i = 0; i < count; i++) {