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

Side by Side Diff: experimental/PdfViewer/SkPdfFont.h

Issue 21738005: pdfviewer: add indexed rbg image support, enhanche caching(setData) for SkPdfObject (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 4 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 | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __DEFINED__SkPdfFont 1 #ifndef __DEFINED__SkPdfFont
2 #define __DEFINED__SkPdfFont 2 #define __DEFINED__SkPdfFont
3 3
4 #include "SkPdfHeaders_autogen.h" 4 #include "SkPdfHeaders_autogen.h"
5 #include "SkPdfMapper_autogen.h" 5 #include "SkPdfMapper_autogen.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "SkTypeface.h" 10 #include "SkTypeface.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // TODO(edisonn): warning/report 308 // TODO(edisonn): warning/report
309 printf("Unknown CIDToGIDMap: %s\n", name); 309 printf("Unknown CIDToGIDMap: %s\n", name);
310 #endif 310 #endif
311 return NULL; 311 return NULL;
312 } 312 }
313 CIDToGIDMap* fCidToGid; 313 CIDToGIDMap* fCidToGid;
314 */ 314 */
315 315
316 class SkPdfType3Font : public SkPdfFont { 316 class SkPdfType3Font : public SkPdfFont {
317 struct Type3FontChar { 317 struct Type3FontChar {
318 const SkPdfObject* fObj; 318 SkPdfObject* fObj;
319 double fWidth; 319 double fWidth;
320 }; 320 };
321 321
322 SkPdfDictionary* fCharProcs; 322 SkPdfDictionary* fCharProcs;
323 SkPdfEncodingDictionary* fEncodingDict; 323 SkPdfEncodingDictionary* fEncodingDict;
324 unsigned int fFirstChar; 324 unsigned int fFirstChar;
325 unsigned int fLastChar; 325 unsigned int fLastChar;
326 326
327 SkRect fFontBBox; 327 SkRect fFontBBox;
328 SkMatrix fFonMatrix; 328 SkMatrix fFonMatrix;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 SkDoubleToScalar(0.0)); 411 SkDoubleToScalar(0.0));
412 return fChars[ch - fFirstChar].fWidth; 412 return fChars[ch - fFirstChar].fWidth;
413 } 413 }
414 414
415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) { 415 virtual void afterWord(SkPaint* paint, SkMatrix* matrix) {
416 416
417 } 417 }
418 }; 418 };
419 419
420 #endif // __DEFINED__SkPdfFont 420 #endif // __DEFINED__SkPdfFont
OLDNEW
« no previous file with comments | « experimental/PdfViewer/SkPdfBasics.h ('k') | experimental/PdfViewer/SkPdfFont.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698