diff options
-rw-r--r-- | src/core/SkTypeface.cpp | 1 | ||||
-rw-r--r-- | src/gpu/gl/GrGpuGL_program.cpp | 2 | ||||
-rw-r--r-- | src/ports/SkFontHost_fontconfig.cpp | 1 | ||||
-rw-r--r-- | src/ports/SkHarfBuzzFont.cpp | 1 |
4 files changed, 1 insertions, 4 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp index dc0fefd5c6..9a9ebcb802 100644 --- a/src/core/SkTypeface.cpp +++ b/src/core/SkTypeface.cpp @@ -185,4 +185,3 @@ size_t SkTypeface::onGetTableData(SkFontTableTag tag, size_t offset, ? SkFontStream::GetTableData(stream, ttcIndex, tag, offset, length, data) : 0; } - diff --git a/src/gpu/gl/GrGpuGL_program.cpp b/src/gpu/gl/GrGpuGL_program.cpp index 8111a03ca7..a07ad02501 100644 --- a/src/gpu/gl/GrGpuGL_program.cpp +++ b/src/gpu/gl/GrGpuGL_program.cpp @@ -33,7 +33,7 @@ GrGpuGL::ProgramCache::~ProgramCache() { SkDebugf("--- Program Cache ---\n"); SkDebugf("Total requests: %d\n", fTotalRequests); SkDebugf("Cache misses: %d\n", fCacheMisses); - SkDebugf("Cache miss %%: %f\n", (fTotalRequests > 0) + SkDebugf("Cache miss %%: %f\n", (fTotalRequests > 0) ? (float)fCacheMisses/(float)fTotalRequests : 0.0f); SkDebugf("---------------------\n"); #endif diff --git a/src/ports/SkFontHost_fontconfig.cpp b/src/ports/SkFontHost_fontconfig.cpp index 872d4e4a16..0ec041c10b 100644 --- a/src/ports/SkFontHost_fontconfig.cpp +++ b/src/ports/SkFontHost_fontconfig.cpp @@ -273,4 +273,3 @@ void FontConfigTypeface::onGetFontDescriptor(SkFontDescriptor* desc) const { desc->setStyle(this->style()); desc->setFamilyName(this->getFamilyName()); } - diff --git a/src/ports/SkHarfBuzzFont.cpp b/src/ports/SkHarfBuzzFont.cpp index 4e6f48da0d..8f483f5d2f 100644 --- a/src/ports/SkHarfBuzzFont.cpp +++ b/src/ports/SkHarfBuzzFont.cpp @@ -185,4 +185,3 @@ HB_Error SkHarfBuzzFont::GetFontTableFunc(void* voidface, const HB_Tag tag, typeface->getTableData(tag, 0, tableSize, buffer); return HB_Err_Ok; } - |