From 4e8ef337bc2343a7ed422558106dccfc0d073bde Mon Sep 17 00:00:00 2001 From: "skia.committer@gmail.com" Date: Tue, 8 Jan 2013 02:01:29 +0000 Subject: Sanitizing source files in Skia_Periodic_House_Keeping git-svn-id: http://skia.googlecode.com/svn/trunk@7072 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrDrawTarget.cpp | 4 ++-- src/ports/SkFontHost_mac_coretext.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp index a67be1c550..3c112871e5 100644 --- a/src/gpu/GrDrawTarget.cpp +++ b/src/gpu/GrDrawTarget.cpp @@ -46,12 +46,12 @@ void gen_mask_arrays(GrVertexLayout* stageTexCoordMasks, } /** - * Uncomment and run the gen_globals function to generate + * Uncomment and run the gen_globals function to generate * the code that declares the global masks. * * #if 0'ed out to avoid unused function warning. */ - + #if 0 void gen_globals() { GrVertexLayout stageTexCoordMasks[GrDrawState::kNumStages]; diff --git a/src/ports/SkFontHost_mac_coretext.cpp b/src/ports/SkFontHost_mac_coretext.cpp index bc020e78ff..ceb9a040c8 100644 --- a/src/ports/SkFontHost_mac_coretext.cpp +++ b/src/ports/SkFontHost_mac_coretext.cpp @@ -1524,15 +1524,15 @@ SkAdvancedTypefaceMetrics* SkFontHost::GetAdvancedTypefaceMetrics( info->fDescent = (int16_t) CTFontGetDescent(ctFont); info->fCapHeight = (int16_t) CTFontGetCapHeight(ctFont); CGRect bbox = CTFontGetBoundingBox(ctFont); - + SkRect r; r.set( CGToScalar(CGRectGetMinX_inline(bbox)), // Left CGToScalar(CGRectGetMaxY_inline(bbox)), // Top CGToScalar(CGRectGetMaxX_inline(bbox)), // Right CGToScalar(CGRectGetMinY_inline(bbox))); // Bottom - + r.roundOut(&(info->fBBox)); - + // Figure out a good guess for StemV - Min width of i, I, !, 1. // This probably isn't very good with an italic font. int16_t min_width = SHRT_MAX; -- cgit v1.2.3