aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkPDFRasterizer.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-16 17:48:11 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-16 17:48:11 +0000
commite9cd27d4a3c92393cc6c79d4d6f93d266411d95e (patch)
tree5f7abfe6a8784b514a386a3d308242bd9224c257 /src/utils/SkPDFRasterizer.cpp
parent1ae6c2b0121fd1fcd5b736a810060fc66ed68286 (diff)
Third wave of Win64 warning cleanup
Diffstat (limited to 'src/utils/SkPDFRasterizer.cpp')
-rw-r--r--src/utils/SkPDFRasterizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkPDFRasterizer.cpp b/src/utils/SkPDFRasterizer.cpp
index bf0ab25a40..a3b4cb4a53 100644
--- a/src/utils/SkPDFRasterizer.cpp
+++ b/src/utils/SkPDFRasterizer.cpp
@@ -38,7 +38,7 @@ bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
return false;
}
- size_t width = image.width(), height = image.height();
+ int width = image.width(), height = image.height();
size_t rowSize = image.bytes_per_row();
char *imgData = image.data();
@@ -51,9 +51,9 @@ bool SkPopplerRasterizePDF(SkStream* pdf, SkBitmap* output) {
SkPMColor* bitmapPixels = (SkPMColor*)bitmap.getPixels();
// do pixel-by-pixel copy to deal with RGBA ordering conversions
- for (size_t y = 0; y < height; y++) {
+ for (int y = 0; y < height; y++) {
char *rowData = imgData;
- for (size_t x = 0; x < width; x++) {
+ for (int x = 0; x < width; x++) {
uint8_t a = rowData[3];
uint8_t r = rowData[2];
uint8_t g = rowData[1];