Remove debug-only ref of GrEffectStage
BUG=skia:2889 R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/553973002
This commit is contained in:
parent
361b8b0885
commit
18444b1649
@ -82,10 +82,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SavedCoordChange {
|
class SavedCoordChange {
|
||||||
|
public:
|
||||||
|
SkDEBUGCODE(SavedCoordChange() : fEffectUniqueID(SK_InvalidUniqueID) {})
|
||||||
private:
|
private:
|
||||||
bool fCoordChangeMatrixSet;
|
bool fCoordChangeMatrixSet;
|
||||||
SkMatrix fCoordChangeMatrix;
|
SkMatrix fCoordChangeMatrix;
|
||||||
SkDEBUGCODE(mutable SkAutoTUnref<const GrEffect> fEffect;)
|
SkDEBUGCODE(mutable uint32_t fEffectUniqueID;)
|
||||||
|
|
||||||
friend class GrEffectStage;
|
friend class GrEffectStage;
|
||||||
};
|
};
|
||||||
@ -101,9 +103,8 @@ public:
|
|||||||
if (fCoordChangeMatrixSet) {
|
if (fCoordChangeMatrixSet) {
|
||||||
savedCoordChange->fCoordChangeMatrix = fCoordChangeMatrix;
|
savedCoordChange->fCoordChangeMatrix = fCoordChangeMatrix;
|
||||||
}
|
}
|
||||||
SkASSERT(NULL == savedCoordChange->fEffect.get());
|
SkASSERT(SK_InvalidUniqueID == savedCoordChange->fEffectUniqueID);
|
||||||
SkDEBUGCODE(SkRef(fEffect.get());)
|
SkDEBUGCODE(savedCoordChange->fEffectUniqueID = fEffect->getUniqueID();)
|
||||||
SkDEBUGCODE(savedCoordChange->fEffect.reset(fEffect.get());)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -114,8 +115,8 @@ public:
|
|||||||
if (fCoordChangeMatrixSet) {
|
if (fCoordChangeMatrixSet) {
|
||||||
fCoordChangeMatrix = savedCoordChange.fCoordChangeMatrix;
|
fCoordChangeMatrix = savedCoordChange.fCoordChangeMatrix;
|
||||||
}
|
}
|
||||||
SkASSERT(savedCoordChange.fEffect.get() == fEffect);
|
SkASSERT(savedCoordChange.fEffectUniqueID == fEffect->getUniqueID());
|
||||||
SkDEBUGCODE(savedCoordChange.fEffect.reset(NULL);)
|
SkDEBUGCODE(savedCoordChange.fEffectUniqueID = SK_InvalidUniqueID);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user