Formatting cleanup: remove extra whitespace
Change by arthurhsu@chromium.org, original CL: http://codereview.appspot.com/5587049/
Review URL: https://codereview.appspot.com/5594043
git-svn-id: http://skia.googlecode.com/svn/trunk@3098 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/pipe/SkGPipeWrite.cpp b/src/pipe/SkGPipeWrite.cpp
index 00d5d5f..ee6e2c7 100644
--- a/src/pipe/SkGPipeWrite.cpp
+++ b/src/pipe/SkGPipeWrite.cpp
@@ -112,14 +112,14 @@
const SkPaint*);
virtual void drawSprite(const SkBitmap&, int left, int top,
const SkPaint*);
- virtual void drawText(const void* text, size_t byteLength, SkScalar x,
+ virtual void drawText(const void* text, size_t byteLength, SkScalar x,
SkScalar y, const SkPaint&);
- virtual void drawPosText(const void* text, size_t byteLength,
+ virtual void drawPosText(const void* text, size_t byteLength,
const SkPoint pos[], const SkPaint&);
virtual void drawPosTextH(const void* text, size_t byteLength,
const SkScalar xpos[], SkScalar constY, const SkPaint&);
- virtual void drawTextOnPath(const void* text, size_t byteLength,
- const SkPath& path, const SkMatrix* matrix,
+ virtual void drawTextOnPath(const void* text, size_t byteLength,
+ const SkPath& path, const SkMatrix* matrix,
const SkPaint&);
virtual void drawPicture(SkPicture& picture);
virtual void drawVertices(VertexMode, int vertexCount,
@@ -144,7 +144,7 @@
inline void writeOp(DrawOps op, unsigned flags, unsigned data) {
fWriter.write32(DrawOp_packOpFlagData(op, flags, data));
}
-
+
inline void writeOp(DrawOps op) {
fWriter.write32(DrawOp_packOpFlagData(op, 0, 0));
}
@@ -164,7 +164,7 @@
uint32_t fSize;
void* data() { return (char*)this + sizeof(*this); }
-
+
static int Compare(const FlatData* a, const FlatData* b) {
return memcmp(&a->fSize, &b->fSize, a->fSize + sizeof(a->fSize));
}
@@ -307,7 +307,7 @@
NOTIFY_SETUP(this);
size_t size = 0;
unsigned opFlags = 0;
-
+
if (bounds) {
opFlags |= kSaveLayer_HasBounds_DrawOpFlag;
size += sizeof(SkRect);
@@ -323,7 +323,7 @@
fWriter.writeRect(*bounds);
}
}
-
+
// we just pass on the save, so we don't create a layer
return this->INHERITED::save(saveFlags);
}
@@ -506,7 +506,7 @@
UNIMPLEMENTED
}
-void SkGPipeCanvas::drawText(const void* text, size_t byteLength, SkScalar x,
+void SkGPipeCanvas::drawText(const void* text, size_t byteLength, SkScalar x,
SkScalar y, const SkPaint& paint) {
if (byteLength) {
NOTIFY_SETUP(this);
@@ -521,7 +521,7 @@
}
}
-void SkGPipeCanvas::drawPosText(const void* text, size_t byteLength,
+void SkGPipeCanvas::drawPosText(const void* text, size_t byteLength,
const SkPoint pos[], const SkPaint& paint) {
if (byteLength) {
NOTIFY_SETUP(this);
@@ -555,8 +555,8 @@
}
}
-void SkGPipeCanvas::drawTextOnPath(const void* text, size_t byteLength,
- const SkPath& path, const SkMatrix* matrix,
+void SkGPipeCanvas::drawTextOnPath(const void* text, size_t byteLength,
+ const SkPath& path, const SkMatrix* matrix,
const SkPaint& paint) {
if (byteLength) {
NOTIFY_SETUP(this);
@@ -611,7 +611,7 @@
flags |= kDrawVertices_HasIndices_DrawOpFlag;
size += 4 + SkAlign4(indexCount * sizeof(uint16_t));
}
-
+
if (this->needOpBytes(size)) {
this->writeOp(kDrawVertices_DrawOp, flags, 0);
fWriter.write32(mode);