Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/core/SkTypeface.cpp

Issue 25112002: Limit warning message to de-clutter bench output logs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Also want to see warning in Release Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 The Android Open Source Project 2 * Copyright 2011 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkAdvancedTypefaceMetrics.h" 8 #include "SkAdvancedTypefaceMetrics.h"
9 #include "SkFontDescriptor.h" 9 #include "SkFontDescriptor.h"
10 #include "SkFontHost.h" 10 #include "SkFontHost.h"
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 SkTypeface* SkTypeface::refMatchingStyle(Style style) const { 247 SkTypeface* SkTypeface::refMatchingStyle(Style style) const {
248 return this->onRefMatchingStyle(style); 248 return this->onRefMatchingStyle(style);
249 } 249 }
250 250
251 /////////////////////////////////////////////////////////////////////////////// 251 ///////////////////////////////////////////////////////////////////////////////
252 /////////////////////////////////////////////////////////////////////////////// 252 ///////////////////////////////////////////////////////////////////////////////
253 253
254 int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding, 254 int SkTypeface::onCharsToGlyphs(const void* chars, Encoding encoding,
255 uint16_t glyphs[], int glyphCount) const { 255 uint16_t glyphs[], int glyphCount) const {
256 SkDebugf("onCharsToGlyphs unimplemented\n"); 256 static bool printed = false;
257 if (!printed) {
258 // Only want to see this message once
259 SkDebugf("\n *** onCharsToGlyphs unimplemented ***\n");
260 printed = true;
261 }
257 if (glyphs && glyphCount > 0) { 262 if (glyphs && glyphCount > 0) {
258 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0])); 263 sk_bzero(glyphs, glyphCount * sizeof(glyphs[0]));
259 } 264 }
260 return 0; 265 return 0;
261 } 266 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698