// Note: this only writes out the clips for the current save state. To get the
// entire clip stack requires iterating of the entire matrix/clip stack.
-void SkMatrixClipStateMgr::MatrixClipState::ClipInfo::writeClip(int* curMatID,
+void SkMatrixClipStateMgr::MatrixClipState::ClipInfo::writeClip(int* curMatID,
SkMatrixClipStateMgr* mgr,
bool* overrideFirstOp) {
for (int i = 0; i < fClips.count(); ++i) {
switch (curClip.fClipType) {
case kRect_ClipType:
- curClip.fOffset = mgr->getPicRecord()->recordClipRect(curClip.fGeom.fRRect.rect(),
+ curClip.fOffset = mgr->getPicRecord()->recordClipRect(curClip.fGeom.fRRect.rect(),
op, curClip.fDoAA);
break;
case kRRect_ClipType:
- curClip.fOffset = mgr->getPicRecord()->recordClipRRect(curClip.fGeom.fRRect, op,
+ curClip.fOffset = mgr->getPicRecord()->recordClipRRect(curClip.fGeom.fRRect, op,
curClip.fDoAA);
break;
case kPath_ClipType:
- curClip.fOffset = mgr->getPicRecord()->recordClipPath(curClip.fGeom.fPathID, op,
+ curClip.fOffset = mgr->getPicRecord()->recordClipPath(curClip.fGeom.fPathID, op,
curClip.fDoAA);
break;
case kRegion_ClipType: {
int regionID,
SkRegion::Op op,
int matrixID);
- void writeClip(int* curMatID,
+ void writeClip(int* curMatID,
SkMatrixClipStateMgr* mgr,
bool* overrideFirstOp);
void fillInSkips(SkWriter32* writer, int32_t restoreOffset);
// This dictionary doesn't actually de-duplicate the matrices (except for the
// identity matrix). It merely stores the matrices and allows them to be looked
- // up by ID later. The de-duplication mainly falls upon the matrix/clip stack
- // which stores the ID so a revisited clip/matrix (via popping the stack) will
+ // up by ID later. The de-duplication mainly falls upon the matrix/clip stack
+ // which stores the ID so a revisited clip/matrix (via popping the stack) will
// use the same ID.
SkTDArray<SkMatrix> fMatrixDict;
int addRegionToDict(const SkRegion& region);
const SkRegion* lookupRegion(int index) {
SkASSERT(index >= 0 && index < fRegionDict.count());
- return fRegionDict[index];
+ return fRegionDict[index];
}
// TODO: add stats to check if the dictionary really does