| 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 12 matching lines...) Expand all Loading... |
| 23 #include "SkShader.h" | 23 #include "SkShader.h" |
| 24 #include "SkSize.h" | 24 #include "SkSize.h" |
| 25 #include "SkTArray.h" | 25 #include "SkTArray.h" |
| 26 #include "SkTScopedComPtr.h" | 26 #include "SkTScopedComPtr.h" |
| 27 #include "SkTypeface.h" | 27 #include "SkTypeface.h" |
| 28 | 28 |
| 29 /** \class SkXPSDevice | 29 /** \class SkXPSDevice |
| 30 | 30 |
| 31 The drawing context for the XPS backend. | 31 The drawing context for the XPS backend. |
| 32 */ | 32 */ |
| 33 class SkXPSDevice : public SkDevice { | 33 class SkXPSDevice : public SkRasterDevice { |
| 34 public: | 34 public: |
| 35 SK_API SkXPSDevice(); | 35 SK_API SkXPSDevice(); |
| 36 SK_API virtual ~SkXPSDevice(); | 36 SK_API virtual ~SkXPSDevice(); |
| 37 | 37 |
| 38 virtual bool beginPortfolio(SkWStream* outputStream); | 38 virtual bool beginPortfolio(SkWStream* outputStream); |
| 39 /** | 39 /** |
| 40 @param unitsPerMeter converts geometry units into physical units. | 40 @param unitsPerMeter converts geometry units into physical units. |
| 41 @param pixelsPerMeter resolution to use when geometry must be rasterized. | 41 @param pixelsPerMeter resolution to use when geometry must be rasterized. |
| 42 @param trimSize final page size in physical units. | 42 @param trimSize final page size in physical units. |
| 43 The top left of the trim is the origin of physical space. | 43 The top left of the trim is the origin of physical space. |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 SkVector* ppuScale, | 301 SkVector* ppuScale, |
| 302 const SkIRect& clip, SkIRect* clipIRect); | 302 const SkIRect& clip, SkIRect* clipIRect); |
| 303 | 303 |
| 304 HRESULT applyMask( | 304 HRESULT applyMask( |
| 305 const SkDraw& d, | 305 const SkDraw& d, |
| 306 const SkMask& mask, | 306 const SkMask& mask, |
| 307 const SkVector& ppuScale, | 307 const SkVector& ppuScale, |
| 308 IXpsOMPath* shadedPath); | 308 IXpsOMPath* shadedPath); |
| 309 | 309 |
| 310 // override from SkDevice | 310 // override from SkDevice |
| 311 virtual SkDevice* onCreateCompatibleDevice( | 311 virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config config, |
| 312 SkBitmap::Config config, | 312 int width, int height, |
| 313 int width, int height, | 313 bool isOpaque, |
| 314 bool isOpaque, | 314 Usage usage) SK_OVERRIDE; |
| 315 Usage usage) SK_OVERRIDE; | |
| 316 | 315 |
| 317 // Disable the default copy and assign implementation. | 316 // Disable the default copy and assign implementation. |
| 318 SkXPSDevice(const SkXPSDevice&); | 317 SkXPSDevice(const SkXPSDevice&); |
| 319 void operator=(const SkXPSDevice&); | 318 void operator=(const SkXPSDevice&); |
| 320 | 319 |
| 321 typedef SkDevice INHERITED; | 320 typedef SkRasterDevice INHERITED; |
| 322 }; | 321 }; |
| 323 | 322 |
| 324 #endif | 323 #endif |
| OLD | NEW |