Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5972 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/experimental/pixman/junk.cpp b/experimental/pixman/junk.cpp
index 6a93bbd..f85a442 100644
--- a/experimental/pixman/junk.cpp
+++ b/experimental/pixman/junk.cpp
@@ -22,9 +22,9 @@
void*
pixbuf_from_argb32 (uint32_t *bits,
- int width,
- int height,
- int stride)
+ int width,
+ int height,
+ int stride)
{
SkBitmap* bitmap = new SkBitmap;
bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
@@ -36,10 +36,10 @@
for (i = 0; i < height; ++i)
{
- uint32_t *src_row = &bits[i * (stride / 4)];
- uint32_t *dst_row = p_bits + i * (p_stride / 4);
+ uint32_t *src_row = &bits[i * (stride / 4)];
+ uint32_t *dst_row = p_bits + i * (p_stride / 4);
- a8r8g8b8_to_rgba_np (dst_row, src_row, width);
+ a8r8g8b8_to_rgba_np (dst_row, src_row, width);
}
return (void*) bitmap;
}
@@ -49,7 +49,7 @@
int width, height;
pixman_format_code_t format;
pixman_image_t *copy;
-
+
width = pixman_image_get_width (image);
height = pixman_image_get_height (image);
@@ -72,22 +72,22 @@
{
case PIXMAN_a8r8g8b8_sRGB:
case PIXMAN_a8r8g8b8:
- copy = pixman_image_ref (image);
- break;
+ copy = pixman_image_ref (image);
+ break;
default:
- copy = pixman_image_create_bits (PIXMAN_a8r8g8b8,
- width, height, NULL, -1);
- pixman_image_composite32 (PIXMAN_OP_SRC,
- image, NULL, copy,
- 0, 0, 0, 0, 0, 0,
- width, height);
- break;
+ copy = pixman_image_create_bits (PIXMAN_a8r8g8b8,
+ width, height, NULL, -1);
+ pixman_image_composite32 (PIXMAN_OP_SRC,
+ image, NULL, copy,
+ 0, 0, 0, 0, 0, 0,
+ width, height);
+ break;
}
SkBitmap* bitmap = (SkBitmap*) pixbuf_from_argb32 (pixman_image_get_data (copy),
- width, height,
- pixman_image_get_stride (copy));
+ width, height,
+ pixman_image_get_stride (copy));
canvas->drawBitmap(*bitmap, 0, 0);
delete bitmap;
}