зеркало из https://github.com/mozilla/moz-skia.git
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6746 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
41e850f074
Коммит
c7b4be7f11
|
@ -794,7 +794,7 @@ struct Bounds : public SkRect {
|
|||
void add(const Bounds& toAdd) {
|
||||
add(toAdd.fLeft, toAdd.fTop, toAdd.fRight, toAdd.fBottom);
|
||||
}
|
||||
|
||||
|
||||
bool isEmpty() {
|
||||
return fLeft > fRight || fTop > fBottom
|
||||
|| (fLeft == fRight && fTop == fBottom)
|
||||
|
@ -1104,7 +1104,7 @@ public:
|
|||
return activeOp(xorMiMask, xorSuMask, index, endIndex, op, sumMiWinding, sumSuWinding,
|
||||
maxWinding, sumWinding, oppMaxWinding, oppSumWinding);
|
||||
}
|
||||
|
||||
|
||||
bool activeOp(int xorMiMask, int xorSuMask, int index, int endIndex, ShapeOp op,
|
||||
int& sumMiWinding, int& sumSuWinding,
|
||||
int& maxWinding, int& sumWinding, int& oppMaxWinding, int& oppSumWinding) {
|
||||
|
@ -1918,11 +1918,11 @@ public:
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// OPTIMIZE
|
||||
// when the edges are initially walked, they don't automatically get the prior and next
|
||||
// edges assigned to positions t=0 and t=1. Doing that would remove the need for this check,
|
||||
// and would additionally remove the need for similar checks in condition edges. It would
|
||||
// and would additionally remove the need for similar checks in condition edges. It would
|
||||
// also allow intersection code to assume end of segment intersections (maybe?)
|
||||
bool complete() const {
|
||||
int count = fTs.count();
|
||||
|
@ -2589,7 +2589,7 @@ public:
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void init(const SkPoint pts[], SkPath::Verb verb, bool operand, bool evenOdd) {
|
||||
fDoneSpans = 0;
|
||||
fOperand = operand;
|
||||
|
@ -2724,7 +2724,7 @@ public:
|
|||
Span* markAndChaseWinding(const Angle* angle, const int winding) {
|
||||
int index = angle->start();
|
||||
int endIndex = angle->end();
|
||||
int step = SkSign32(endIndex - index);
|
||||
int step = SkSign32(endIndex - index);
|
||||
int min = SkMin32(index, endIndex);
|
||||
markWinding(min, winding);
|
||||
Span* last;
|
||||
|
@ -3172,7 +3172,7 @@ public:
|
|||
*outsideTs.append() = start;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void undoneSpan(int& start, int& end) {
|
||||
size_t tCount = fTs.count();
|
||||
size_t index;
|
||||
|
@ -3930,7 +3930,7 @@ public:
|
|||
void setOperand(bool isOp) {
|
||||
fOperand = isOp;
|
||||
}
|
||||
|
||||
|
||||
void setOppXor(bool isOppXor) {
|
||||
fOppXor = isOppXor;
|
||||
int segmentCount = fSegments.count();
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
/** Returns a GrPathRenderer compatible with the request if one is available. If the caller
|
||||
is drawing the path to the stencil buffer then stencilSupport can be used to determine
|
||||
whether the path can be rendered with arbitrary stencil rules or not. See comments on
|
||||
StencilSupport in GrPathRenderer.h. */
|
||||
StencilSupport in GrPathRenderer.h. */
|
||||
GrPathRenderer* getPathRenderer(const SkPath& path,
|
||||
const SkStroke& stroke,
|
||||
const GrDrawTarget* target,
|
||||
|
|
|
@ -40,7 +40,7 @@ protected:
|
|||
GrDrawTarget*,
|
||||
bool antiAlias) SK_OVERRIDE;
|
||||
|
||||
virtual void onStencilPath(const SkPath&,
|
||||
virtual void onStencilPath(const SkPath&,
|
||||
const SkStroke&,
|
||||
GrDrawTarget*) SK_OVERRIDE;
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ static void test_constructor(skiatest::Reporter* reporter) {
|
|||
|
||||
// Verify that kIdentity_Constructor really does initialize to an identity matrix.
|
||||
testMatrix = 0;
|
||||
testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kIdentity_Constructor);
|
||||
testMatrix = new(placeholderMatrix) SkMatrix44(SkMatrix44::kIdentity_Constructor);
|
||||
REPORTER_ASSERT(reporter, testMatrix == placeholderMatrix);
|
||||
REPORTER_ASSERT(reporter, testMatrix->isIdentity());
|
||||
REPORTER_ASSERT(reporter, *testMatrix == SkMatrix44::I());
|
||||
|
|
|
@ -669,10 +669,10 @@ public:
|
|||
SkIntToScalar(fPicture->height()));
|
||||
SkData* data = SkPictureUtils::GatherPixelRefs(fPicture, bounds);
|
||||
SkSafeUnref(data);
|
||||
|
||||
|
||||
return NULL == path; // we don't have anything to write
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
virtual SkString getConfigNameInternal() SK_OVERRIDE {
|
||||
return SkString("gather_pixelrefs");
|
||||
|
@ -692,10 +692,10 @@ public:
|
|||
SkPicture* clone = fPicture->clone();
|
||||
SkSafeUnref(clone);
|
||||
}
|
||||
|
||||
|
||||
return NULL == path; // we don't have anything to write
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
virtual SkString getConfigNameInternal() SK_OVERRIDE {
|
||||
return SkString("picture_clone");
|
||||
|
|
Загрузка…
Ссылка в новой задаче