Skip to content

Commit

Permalink
Remove references to SkAdvancedTypefaceMetrics::kNotEmbeddable_Font
Browse files Browse the repository at this point in the history
First part of a two sided change. kNotEmbeddable_Font is going away in favor of an explicit flag to represent it.  This change preserves existing functionality/operation and just changes the constant being used.

BUG=NONE

Review URL: https://codereview.chromium.org/105433003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239546 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
vandebo@chromium.org committed Dec 9, 2013
1 parent 0c1f6a1 commit 3cd37bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions printing/pdf_metafile_skia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ bool PdfMetafileSkia::FinishDocument() {

data_->current_page_.clear();

int font_counts[SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1];
int font_counts[SkAdvancedTypefaceMetrics::kOther_Font + 2];
data_->pdf_doc_.getCountOfFontTypes(font_counts);
for (int type = 0;
type <= SkAdvancedTypefaceMetrics::kNotEmbeddable_Font;
type <= SkAdvancedTypefaceMetrics::kOther_Font + 1;
type++) {
for (int count = 0; count < font_counts[type]; count++) {
UMA_HISTOGRAM_ENUMERATION(
"PrintPreview.FontType", type,
SkAdvancedTypefaceMetrics::kNotEmbeddable_Font + 1);
SkAdvancedTypefaceMetrics::kOther_Font + 2);
}
}

Expand Down

0 comments on commit 3cd37bc

Please sign in to comment.