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

Issue 7084021: Add metrics to determine what font types are being used with print preview. (Closed)

Created:
9 years, 7 months ago by vandebo (ex-Chrome)
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Lei Zhang
Visibility:
Public.

Description

Add metrics to determine what font types are being used with print preview. This depends on Skia r1444. BUG=80918 TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87242 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=87248 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87257

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
M printing/pdf_metafile_skia.cc View 3 chunks +27 lines, -0 lines 4 comments Download

Messages

Total messages: 7 (0 generated)
vandebo (ex-Chrome)
9 years, 7 months ago (2011-05-29 00:21:17 UTC) #1
jar (doing other things)
I'm not expert on the instrumented code, but tried to guess what you were doing. ...
9 years, 7 months ago (2011-05-29 01:49:15 UTC) #2
Chris Guillory
http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc#newcode84 printing/pdf_metafile_skia.cc:84: const SkTDArray<SkPDFFont*>& font_resources = Can we not put this ...
9 years, 7 months ago (2011-05-29 01:50:48 UTC) #3
vandebo (ex-Chrome)
On 2011/05/29 01:49:15, jar wrote: > I'm not expert on the instrumented code, but tried ...
9 years, 7 months ago (2011-05-29 06:12:15 UTC) #4
vandebo (ex-Chrome)
http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc#newcode84 printing/pdf_metafile_skia.cc:84: const SkTDArray<SkPDFFont*>& font_resources = On 2011/05/29 01:50:48, Chris Guillory ...
9 years, 7 months ago (2011-05-29 06:14:54 UTC) #5
Chris Guillory
LGTM. http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc File printing/pdf_metafile_skia.cc (right): http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc#newcode84 printing/pdf_metafile_skia.cc:84: const SkTDArray<SkPDFFont*>& font_resources = On 2011/05/29 06:14:54, vandebo ...
9 years, 6 months ago (2011-05-30 16:46:31 UTC) #6
vandebo (ex-Chrome)
9 years, 6 months ago (2011-05-30 17:34:41 UTC) #7
On 2011/05/30 16:46:31, Chris Guillory wrote:
> LGTM.
> 
> http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc
> File printing/pdf_metafile_skia.cc (right):
> 
>
http://codereview.chromium.org/7084021/diff/1/printing/pdf_metafile_skia.cc#n...
> printing/pdf_metafile_skia.cc:84: const SkTDArray<SkPDFFont*>& font_resources
=
> On 2011/05/29 06:14:54, vandebo wrote:
> > On 2011/05/29 01:50:48, Chris Guillory wrote:
> > > Can we not put this logic into FinishDocument() somehow?
> > 
> > We could keep a list of pages instead of just the current page... or we
could
> > add an accessor to get the list of pages out of the Document, but I'm not
sure
> > what that will gain us.  Can you say more?
> For a second I was still thinking that the document had a way to access the
> fonts but it looks it doesn't.
> http://codereview.appspot.com/4547069/patch/1/7
> 
> Optional: I think an accessor for the pages makes sense.
> * All this logic could be together inside of FinishDocuemnt.
> * We wouldn't need to add the font_type_stats_ member.

Ok, sounds good.  But I'll do that in a follow up CL, as it requires a Skia
change and a Skia roll.

Powered by Google App Engine
This is Rietveld 408576698