Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6809 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
ffbe903bc8
commit
61b05dcc7e
@ -79,22 +79,22 @@ private:
|
||||
class InvertMatrix44Bench : public Matrix44Bench {
|
||||
public:
|
||||
InvertMatrix44Bench(void* param) : INHERITED(param, "invert") {
|
||||
fM0.set(0, 0, -1.1);
|
||||
fM0.set(0, 1, 2.1);
|
||||
fM0.set(0, 2, -3.1);
|
||||
fM0.set(0, 3, 4.1);
|
||||
fM0.set(1, 0, 5.1);
|
||||
fM0.set(1, 1, -6.1);
|
||||
fM0.set(1, 2, 7.1);
|
||||
fM0.set(1, 3, 8.1);
|
||||
fM0.set(2, 0, -9.1);
|
||||
fM0.set(2, 1, 10.1);
|
||||
fM0.set(2, 2, 11.1);
|
||||
fM0.set(2, 3, -12.1);
|
||||
fM0.set(3, 0, -13.1);
|
||||
fM0.set(3, 1, 14.1);
|
||||
fM0.set(3, 2, -15.1);
|
||||
fM0.set(3, 3, 16.1);
|
||||
fM0.set(0, 0, -1.1);
|
||||
fM0.set(0, 1, 2.1);
|
||||
fM0.set(0, 2, -3.1);
|
||||
fM0.set(0, 3, 4.1);
|
||||
fM0.set(1, 0, 5.1);
|
||||
fM0.set(1, 1, -6.1);
|
||||
fM0.set(1, 2, 7.1);
|
||||
fM0.set(1, 3, 8.1);
|
||||
fM0.set(2, 0, -9.1);
|
||||
fM0.set(2, 1, 10.1);
|
||||
fM0.set(2, 2, 11.1);
|
||||
fM0.set(2, 3, -12.1);
|
||||
fM0.set(3, 0, -13.1);
|
||||
fM0.set(3, 1, 14.1);
|
||||
fM0.set(3, 2, -15.1);
|
||||
fM0.set(3, 3, 16.1);
|
||||
}
|
||||
protected:
|
||||
virtual void performTest() {
|
||||
|
@ -14,7 +14,7 @@ void cubecode_test(int test);
|
||||
|
||||
void Intersection_Tests() {
|
||||
int testsRun = 0;
|
||||
|
||||
|
||||
SimplifyNew_Test();
|
||||
Simplify4x4QuadraticsThreaded_Test(testsRun);
|
||||
QuadLineIntersectThreaded_Test(testsRun);
|
||||
|
@ -5711,7 +5711,7 @@ static void assemble(const PathWrapper& path, PathWrapper& simple) {
|
||||
} else {
|
||||
SkDebugf(" ");
|
||||
}
|
||||
SkDebugf(" start=(%1.9g,%1.9g) end=(%1.9g,%1.9g)\n",
|
||||
SkDebugf(" start=(%1.9g,%1.9g) end=(%1.9g,%1.9g)\n",
|
||||
eStart.fX, eStart.fY, eEnd.fX, eEnd.fY);
|
||||
#endif
|
||||
if (approximatelyEqual(eStart, eEnd)) {
|
||||
@ -5814,8 +5814,8 @@ static void assemble(const PathWrapper& path, PathWrapper& simple) {
|
||||
SkASSERT(eIndex != INT_MAX);
|
||||
#if DEBUG_ASSEMBLE
|
||||
SkDebugf("%s sIndex=%c%d eIndex=%c%d\n", __FUNCTION__, sIndex < 0 ? 's' : 'e',
|
||||
sIndex < 0 ? ~sIndex : sIndex, eIndex < 0 ? 's' : 'e',
|
||||
eIndex < 0 ? ~eIndex : eIndex);
|
||||
sIndex < 0 ? ~sIndex : sIndex, eIndex < 0 ? 's' : 'e',
|
||||
eIndex < 0 ? ~eIndex : eIndex);
|
||||
#endif
|
||||
do {
|
||||
outer = runs[rIndex];
|
||||
@ -5832,7 +5832,7 @@ static void assemble(const PathWrapper& path, PathWrapper& simple) {
|
||||
}
|
||||
#if DEBUG_ASSEMBLE
|
||||
SkDebugf("%s rIndex=%d eIndex=%s%d close=%d\n", __FUNCTION__, rIndex,
|
||||
eIndex < 0 ? "~" : "", eIndex < 0 ? ~eIndex : eIndex,
|
||||
eIndex < 0 ? "~" : "", eIndex < 0 ? ~eIndex : eIndex,
|
||||
sIndex == ((rIndex != eIndex) ^ forward ? eIndex : ~eIndex));
|
||||
#endif
|
||||
if (sIndex == ((rIndex != eIndex) ^ forward ? eIndex : ~eIndex)) {
|
||||
|
@ -3091,7 +3091,7 @@ static struct {
|
||||
TEST(testQuadratic71),
|
||||
TEST(testQuadratic70x),
|
||||
TEST(testQuadratic69),
|
||||
TEST(testQuadratic68),
|
||||
TEST(testQuadratic68),
|
||||
TEST(testQuadratic67x),
|
||||
TEST(testQuadratic65),
|
||||
TEST(testQuadratic64),
|
||||
|
@ -26,4 +26,4 @@ private:
|
||||
int fTileWidth, fTileHeight, fXTileCount, fYTileCount;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -587,7 +587,7 @@ public:
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
virtual void endContext() SK_OVERRIDE {
|
||||
if (fProxy) {
|
||||
fProxy->endContext();
|
||||
|
@ -98,4 +98,4 @@ void SkTileGrid::clear() {
|
||||
|
||||
int SkTileGrid::getCount() const {
|
||||
return fInsertionCount;
|
||||
}
|
||||
}
|
||||
|
@ -117,4 +117,4 @@ void* SkTileGridNextDatum(SkTDArray<void*>** tileData, SkTDArray<int>& tileIndic
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
@ -496,7 +496,7 @@ public:
|
||||
this->drawRect(rect, matrix, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This call is used to draw multiple instances of some geometry with a
|
||||
* given number of vertices (V) and indices (I) per-instance. The indices in
|
||||
@ -895,7 +895,7 @@ protected:
|
||||
};
|
||||
GR_DECL_BITFIELD_OPS_FRIENDS(BlendOptFlags);
|
||||
|
||||
/**
|
||||
/**
|
||||
* Determines what optimizations can be applied based on the blend. The coefficients may have
|
||||
* to be tweaked in order for the optimization to work. srcCoeff and dstCoeff are optional
|
||||
* params that receive the tweaked coefficients. Normally the function looks at the current
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
static void TestUnalignedQuery(skiatest::Reporter* reporter) {
|
||||
// Use SkTileGridPicture to generate a SkTileGrid with a helper
|
||||
SkTileGridPicture picture(10, 10, 20, 20);
|
||||
SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0),
|
||||
SkRect rect1 = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0),
|
||||
SkIntToScalar(8), SkIntToScalar(8));
|
||||
SkRect rect2 = SkRect::MakeXYWH(SkIntToScalar(11), SkIntToScalar(11),
|
||||
SkIntToScalar(1), SkIntToScalar(1));
|
||||
|
Loading…
Reference in New Issue
Block a user