Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6409 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
454008ae29
commit
fbb0ed959d
@ -161,7 +161,7 @@ protected:
|
|||||||
static const int PICTURE_VERSION = 9;
|
static const int PICTURE_VERSION = 9;
|
||||||
|
|
||||||
// fPlayback, fRecord, fWidth & fHeight are protected to allow derived classes to
|
// fPlayback, fRecord, fWidth & fHeight are protected to allow derived classes to
|
||||||
// install their own SkPicturePlayback-derived players,SkPictureRecord-derived
|
// install their own SkPicturePlayback-derived players,SkPictureRecord-derived
|
||||||
// recorders and set the picture size
|
// recorders and set the picture size
|
||||||
SkPicturePlayback* fPlayback;
|
SkPicturePlayback* fPlayback;
|
||||||
SkPictureRecord* fRecord;
|
SkPictureRecord* fRecord;
|
||||||
|
@ -2501,7 +2501,7 @@ bool SkPath::cheapComputeDirection(Direction* dir) const {
|
|||||||
int next = find_diff_pt(pts, index, n, 1);
|
int next = find_diff_pt(pts, index, n, 1);
|
||||||
SkASSERT(next != index);
|
SkASSERT(next != index);
|
||||||
cross = cross_prod(pts[prev], pts[index], pts[next]);
|
cross = cross_prod(pts[prev], pts[index], pts[next]);
|
||||||
// if we get a zero and the points are horizontal, then we look at the spread in
|
// if we get a zero and the points are horizontal, then we look at the spread in
|
||||||
// x-direction. We really should continue to walk away from the degeneracy until
|
// x-direction. We really should continue to walk away from the degeneracy until
|
||||||
// there is a divergence.
|
// there is a divergence.
|
||||||
if (0 == cross && pts[prev].fY == pts[index].fY && pts[next].fY == pts[index].fY) {
|
if (0 == cross && pts[prev].fY == pts[index].fY && pts[next].fY == pts[index].fY) {
|
||||||
|
@ -1474,7 +1474,7 @@ static void check_for_circle(skiatest::Reporter* reporter,
|
|||||||
SkRect rect;
|
SkRect rect;
|
||||||
REPORTER_ASSERT(reporter, path.isOval(&rect) == expectedCircle);
|
REPORTER_ASSERT(reporter, path.isOval(&rect) == expectedCircle);
|
||||||
REPORTER_ASSERT(reporter, path.cheapIsDirection(expectedDir));
|
REPORTER_ASSERT(reporter, path.cheapIsDirection(expectedDir));
|
||||||
|
|
||||||
if (expectedCircle) {
|
if (expectedCircle) {
|
||||||
REPORTER_ASSERT(reporter, rect.height() == rect.width());
|
REPORTER_ASSERT(reporter, rect.height() == rect.width());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user