Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13316 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp
index d29e539..0822f4c 100644
--- a/gm/convexpolyclip.cpp
+++ b/gm/convexpolyclip.cpp
@@ -125,7 +125,7 @@
rotM.setRotate(23.f, rect.centerX(), rect.centerY());
rotRect.transform(rotM);
fClips.addToTail()->setPath(rotRect);
-
+
fBmp = make_bmp(100, 100);
}
@@ -198,7 +198,7 @@
};
Clip () : fClipType(kNone_ClipType) {}
-
+
void setOnCanvas(SkCanvas* canvas, SkRegion::Op op, bool aa) const {
switch (fClipType) {
case kPath_ClipType:
@@ -212,7 +212,7 @@
break;
}
}
-
+
void asClosedPath(SkPath* path) const {
switch (fClipType) {
case kPath_ClipType:
@@ -228,26 +228,26 @@
break;
}
}
-
+
void setPath(const SkPath& path) {
fClipType = kPath_ClipType;
fPath = path;
}
-
+
void setRect(const SkRect& rect) {
fClipType = kRect_ClipType;
fRect = rect;
fPath.reset();
}
-
+
ClipType getType() const { return fClipType; }
-
+
private:
ClipType fClipType;
SkPath fPath;
SkRect fRect;
};
-
+
SkTLList<Clip> fClips;
SkBitmap fBmp;
diff --git a/include/core/SkSurface.h b/include/core/SkSurface.h
index cfaf00c..35bd60c 100644
--- a/include/core/SkSurface.h
+++ b/include/core/SkSurface.h
@@ -66,12 +66,12 @@
* "replayed" into that canvas.
*/
static SkSurface* NewPicture(int width, int height);
-
+
/**
* Return a new surface using the specified render target.
*/
static SkSurface* NewRenderTargetDirect(GrRenderTarget*);
-
+
#ifdef SK_SUPPORT_LEGACY_NEWRENDERTARGETDIRECT
/**
* DEPRECATED -- call the single argument version (just rendertarget)
diff --git a/src/core/SkPictureRecord.h b/src/core/SkPictureRecord.h
index 51ae0b2..3832516 100644
--- a/src/core/SkPictureRecord.h
+++ b/src/core/SkPictureRecord.h
@@ -238,7 +238,7 @@
int addPathToHeap(const SkPath& path); // does not write to ops stream
- // These entry points allow the writing of matrices, clips, saves &
+ // These entry points allow the writing of matrices, clips, saves &
// restores to be deferred (e.g., if the MC state is being collapsed and
// only written out as needed).
void recordConcat(const SkMatrix& matrix);
diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp
index 0ab482b..81f19b1 100644
--- a/tests/DeferredCanvasTest.cpp
+++ b/tests/DeferredCanvasTest.cpp
@@ -53,7 +53,7 @@
SkAutoTUnref<SkSurface> surface(createSurface(0xFFFFFFFF));
SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
-
+
canvas->clear(0x00000000);
// verify that the clear() was deferred
@@ -499,22 +499,22 @@
static void TestDeferredCanvasMemoryLimit(skiatest::Reporter* reporter) {
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterPMColor(100, 100));
SkAutoTUnref<SkDeferredCanvas> canvas(SkDeferredCanvas::Create(surface.get()));
-
+
NotificationCounter notificationCounter;
canvas->setNotificationClient(¬ificationCounter);
-
+
canvas->setMaxRecordingStorage(160000);
-
+
SkBitmap sourceImage;
// 100 by 100 image, takes 40,000 bytes in memory
sourceImage.setConfig(SkBitmap::kARGB_8888_Config, 100, 100);
sourceImage.allocPixels();
-
+
for (int i = 0; i < 5; i++) {
sourceImage.notifyPixelsChanged(); // to force re-serialization
canvas->drawBitmap(sourceImage, 0, 0, NULL);
}
-
+
REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
}