OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPDFDevice_DEFINED | 10 #ifndef SkPDFDevice_DEFINED |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 * intent with better fidelity, but it can make for larger | 201 * intent with better fidelity, but it can make for larger |
202 * PDF files too, which would use more memory while rendering, | 202 * PDF files too, which would use more memory while rendering, |
203 * and it would be slower to be processed or sent online or | 203 * and it would be slower to be processed or sent online or |
204 * to printer. | 204 * to printer. |
205 */ | 205 */ |
206 void setRasterDpi(SkScalar rasterDpi) { | 206 void setRasterDpi(SkScalar rasterDpi) { |
207 fRasterDpi = rasterDpi; | 207 fRasterDpi = rasterDpi; |
208 } | 208 } |
209 | 209 |
210 protected: | 210 protected: |
211 #ifdef SK_SUPPORT_LEGACY_READPIXELSCONFIG | |
212 virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y, | |
213 SkCanvas::Config8888) SK_OVERRIDE; | |
214 #endif | |
215 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; | 211 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; |
216 | 212 |
217 private: | 213 private: |
218 // TODO(vandebo): push most of SkPDFDevice's state into a core object in | 214 // TODO(vandebo): push most of SkPDFDevice's state into a core object in |
219 // order to get the right access levels without using friend. | 215 // order to get the right access levels without using friend. |
220 friend class ScopedContentEntry; | 216 friend class ScopedContentEntry; |
221 | 217 |
222 SkISize fPageSize; | 218 SkISize fPageSize; |
223 SkISize fContentSize; | 219 SkISize fContentSize; |
224 SkMatrix fInitialTransform; | 220 SkMatrix fInitialTransform; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 325 |
330 typedef SkBitmapDevice INHERITED; | 326 typedef SkBitmapDevice INHERITED; |
331 | 327 |
332 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 328 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
333 // an SkPDFDevice | 329 // an SkPDFDevice |
334 //friend class SkDocument_PDF; | 330 //friend class SkDocument_PDF; |
335 //friend class SkPDFImageShader; | 331 //friend class SkPDFImageShader; |
336 }; | 332 }; |
337 | 333 |
338 #endif | 334 #endif |
OLD | NEW |