From: skia.committer@gmail.com Date: Thu, 24 Oct 2013 07:01:59 +0000 (+0000) Subject: Sanitizing source files in Housekeeper-Nightly X-Git-Tag: submit/tizen/20180928.044319~10306 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=583b18a20959c9ac360316a366f4ddd9598bdf52;p=platform%2Fupstream%2FlibSkiaSharp.git Sanitizing source files in Housekeeper-Nightly git-svn-id: http://skia.googlecode.com/svn/trunk@11934 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/gm/clippedbitmapshaders.cpp b/gm/clippedbitmapshaders.cpp index d7eb3b6e98..4087c89c38 100644 --- a/gm/clippedbitmapshaders.cpp +++ b/gm/clippedbitmapshaders.cpp @@ -78,7 +78,7 @@ protected: virtual SkISize onISize() { return SkISize::Make(300, 300); } - + virtual void onDraw(SkCanvas* canvas) { SkBitmap bmp = create_bitmap(); SkShader* shader = SkShader::CreateBitmapShader( @@ -91,7 +91,7 @@ protected: s.postTranslate(SLIDE_SIZE / 2, SLIDE_SIZE / 2); shader->setLocalMatrix(s); paint.setShader(shader)->unref(); - + if (fHQ) { paint.setFilterLevel(SkPaint::kHigh_FilterLevel); } diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp index 88e3f06ee8..1d6c2f79a5 100644 --- a/src/core/SkScalerContext.cpp +++ b/src/core/SkScalerContext.cpp @@ -71,7 +71,7 @@ static SkFlattenable* load_flattenable(const SkDescriptor* desc, uint32_t tag, SkFlattenable* obj = NULL; uint32_t len; const void* data = desc->findEntry(tag, &len); - + if (data) { SkOrderedReadBuffer buffer(data, len); obj = buffer.readFlattenable(ft); diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp index a84d8eec82..c5933ee47e 100644 --- a/src/gpu/GrContext.cpp +++ b/src/gpu/GrContext.cpp @@ -1265,7 +1265,7 @@ bool GrContext::readTexturePixels(GrTexture* texture, config, buffer, rowBytes, flags); } - + return false; } } diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 6617989848..005da229c7 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -1371,7 +1371,7 @@ void SkGpuDevice::internalDrawBitmap(const SkBitmap& bitmap, // sampling is axis-aligned SkRect transformedRect; matrix.mapRect(&transformedRect, srcRect); - + if (has_aligned_samples(srcRect, transformedRect)) { // We could also turn off filtering here (but we already did a cache lookup with // params).