Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6362 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
6849279f34
commit
d9f7503e0c
@ -138,7 +138,7 @@ public:
|
||||
* Gets the bounds of the clip element, either the rect or path bounds.
|
||||
*/
|
||||
const SkRect& getBounds() const;
|
||||
/**
|
||||
/**
|
||||
* Returns true if the clip element is a path that is inverse filled
|
||||
*/
|
||||
bool isInverseFilled() const;
|
||||
|
@ -79,7 +79,7 @@ struct SK_API SkIRect {
|
||||
* (right + left) / 2 when the sum is negative.
|
||||
*/
|
||||
int centerX() const { return (fRight + fLeft) >> 1; }
|
||||
|
||||
|
||||
/**
|
||||
* Since the center of an integer rect may fall on a factional value, this
|
||||
* method is defined to return (bottom + top) >> 1
|
||||
@ -88,7 +88,7 @@ struct SK_API SkIRect {
|
||||
* (bottom + top) / 2 when the sum is negative.
|
||||
*/
|
||||
int centerY() const { return (fBottom + fTop) >> 1; }
|
||||
|
||||
|
||||
/**
|
||||
* Return true if the rectangle's width or height are <= 0
|
||||
*/
|
||||
|
@ -45,7 +45,7 @@ class PictFileView : public SampleView {
|
||||
} else {
|
||||
SkFILEStream stream(path);
|
||||
if (stream.isValid()) {
|
||||
pic = SkNEW_ARGS(SkPicture,
|
||||
pic = SkNEW_ARGS(SkPicture,
|
||||
(&stream, NULL, &SkImageDecoder::DecodeStream));
|
||||
}
|
||||
|
||||
|
@ -631,7 +631,7 @@ bool GrClipMaskManager::createAlphaClipMask(const GrClipData& clipDataIn,
|
||||
accum->asRenderTarget());
|
||||
GR_DEBUGCODE(bool accumClearedToZero = !clearToInside;)
|
||||
|
||||
|
||||
|
||||
GrAutoScratchTexture temp;
|
||||
bool first = true;
|
||||
|
||||
|
@ -36,7 +36,7 @@ static void test_center(skiatest::Reporter* reporter) {
|
||||
SkRandom rand;
|
||||
for (int i = 0; i < 10000; ++i) {
|
||||
SkIRect r;
|
||||
|
||||
|
||||
r.set(rand.nextS() >> 2, rand.nextS() >> 2,
|
||||
rand.nextS() >> 2, rand.nextS() >> 2);
|
||||
int cx = r.centerX();
|
||||
@ -79,7 +79,7 @@ static void TestInfRect(skiatest::Reporter* reporter) {
|
||||
check_invalid(reporter, small, invalid[i], big, big);
|
||||
check_invalid(reporter, invalid[i], small, big, big);
|
||||
}
|
||||
|
||||
|
||||
test_center(reporter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user