| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 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 #ifndef SkXPSDevice_DEFINED | 8 #ifndef SkXPSDevice_DEFINED |
| 9 #define SkXPSDevice_DEFINED | 9 #define SkXPSDevice_DEFINED |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 int x, | 143 int x, |
| 144 int y, | 144 int y, |
| 145 SkCanvas::Config8888) SK_OVERRIDE; | 145 SkCanvas::Config8888) SK_OVERRIDE; |
| 146 | 146 |
| 147 virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE; | 147 virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE; |
| 148 | 148 |
| 149 private: | 149 private: |
| 150 class TypefaceUse : ::SkNoncopyable { | 150 class TypefaceUse : ::SkNoncopyable { |
| 151 public: | 151 public: |
| 152 SkFontID typefaceId; | 152 SkFontID typefaceId; |
| 153 int ttcIndex; |
| 153 SkStream* fontData; | 154 SkStream* fontData; |
| 154 IXpsOMFontResource* xpsFont; | 155 IXpsOMFontResource* xpsFont; |
| 155 SkBitSet* glyphsUsed; | 156 SkBitSet* glyphsUsed; |
| 156 | 157 |
| 157 explicit TypefaceUse(); | 158 explicit TypefaceUse(); |
| 158 ~TypefaceUse(); | 159 ~TypefaceUse(); |
| 159 }; | 160 }; |
| 160 friend static HRESULT subset_typeface(TypefaceUse* current); | 161 friend static HRESULT subset_typeface(TypefaceUse* current); |
| 161 | 162 |
| 162 SkXPSDevice(IXpsOMObjectFactory* xpsFactory); | 163 SkXPSDevice(IXpsOMObjectFactory* xpsFactory); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 IXpsOMGeometryFigure** xpsQuad); | 241 IXpsOMGeometryFigure** xpsQuad); |
| 241 | 242 |
| 242 HRESULT CreateTypefaceUse( | 243 HRESULT CreateTypefaceUse( |
| 243 const SkPaint& paint, | 244 const SkPaint& paint, |
| 244 TypefaceUse** fontResource); | 245 TypefaceUse** fontResource); |
| 245 | 246 |
| 246 HRESULT AddGlyphs( | 247 HRESULT AddGlyphs( |
| 247 const SkDraw& d, | 248 const SkDraw& d, |
| 248 IXpsOMObjectFactory* xpsFactory, | 249 IXpsOMObjectFactory* xpsFactory, |
| 249 IXpsOMCanvas* canvas, | 250 IXpsOMCanvas* canvas, |
| 250 IXpsOMFontResource* font, | 251 TypefaceUse* font, |
| 251 LPCWSTR text, | 252 LPCWSTR text, |
| 252 XPS_GLYPH_INDEX* xpsGlyphs, | 253 XPS_GLYPH_INDEX* xpsGlyphs, |
| 253 UINT32 xpsGlyphsLen, | 254 UINT32 xpsGlyphsLen, |
| 254 XPS_POINT *origin, | 255 XPS_POINT *origin, |
| 255 FLOAT fontSize, | 256 FLOAT fontSize, |
| 256 XPS_STYLE_SIMULATION sims, | 257 XPS_STYLE_SIMULATION sims, |
| 257 const SkMatrix& transform, | 258 const SkMatrix& transform, |
| 258 const SkPaint& paint); | 259 const SkPaint& paint); |
| 259 | 260 |
| 260 HRESULT addXpsPathGeometry( | 261 HRESULT addXpsPathGeometry( |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 Usage usage) SK_OVERRIDE; | 316 Usage usage) SK_OVERRIDE; |
| 316 | 317 |
| 317 // Disable the default copy and assign implementation. | 318 // Disable the default copy and assign implementation. |
| 318 SkXPSDevice(const SkXPSDevice&); | 319 SkXPSDevice(const SkXPSDevice&); |
| 319 void operator=(const SkXPSDevice&); | 320 void operator=(const SkXPSDevice&); |
| 320 | 321 |
| 321 typedef SkDevice INHERITED; | 322 typedef SkDevice INHERITED; |
| 322 }; | 323 }; |
| 323 | 324 |
| 324 #endif | 325 #endif |
| OLD | NEW |