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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 SkXfermode* xmode, | 134 SkXfermode* xmode, |
135 const uint16_t indices[], int indexCount, | 135 const uint16_t indices[], int indexCount, |
136 const SkPaint& paint) SK_OVERRIDE; | 136 const SkPaint& paint) SK_OVERRIDE; |
137 | 137 |
138 virtual void drawDevice( | 138 virtual void drawDevice( |
139 const SkDraw&, | 139 const SkDraw&, |
140 SkBaseDevice* device, | 140 SkBaseDevice* device, |
141 int x, int y, | 141 int x, int y, |
142 const SkPaint& paint) SK_OVERRIDE; | 142 const SkPaint& paint) SK_OVERRIDE; |
143 | 143 |
144 #ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG | |
145 virtual bool onReadPixels(const SkBitmap& bitmap, | |
146 int x, | |
147 int y, | |
148 SkCanvas::Config8888) SK_OVERRIDE; | |
149 #endif | |
150 | |
151 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; | 144 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; |
152 | 145 |
153 private: | 146 private: |
154 class TypefaceUse : ::SkNoncopyable { | 147 class TypefaceUse : ::SkNoncopyable { |
155 public: | 148 public: |
156 SkFontID typefaceId; | 149 SkFontID typefaceId; |
157 int ttcIndex; | 150 int ttcIndex; |
158 SkStream* fontData; | 151 SkStream* fontData; |
159 IXpsOMFontResource* xpsFont; | 152 IXpsOMFontResource* xpsFont; |
160 SkBitSet* glyphsUsed; | 153 SkBitSet* glyphsUsed; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; | 308 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; |
316 | 309 |
317 // Disable the default copy and assign implementation. | 310 // Disable the default copy and assign implementation. |
318 SkXPSDevice(const SkXPSDevice&); | 311 SkXPSDevice(const SkXPSDevice&); |
319 void operator=(const SkXPSDevice&); | 312 void operator=(const SkXPSDevice&); |
320 | 313 |
321 typedef SkBitmapDevice INHERITED; | 314 typedef SkBitmapDevice INHERITED; |
322 }; | 315 }; |
323 | 316 |
324 #endif | 317 #endif |
OLD | NEW |