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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 * to printer. | 206 * to printer. |
207 */ | 207 */ |
208 void setRasterDpi(SkScalar rasterDpi) { | 208 void setRasterDpi(SkScalar rasterDpi) { |
209 fRasterDpi = rasterDpi; | 209 fRasterDpi = rasterDpi; |
210 } | 210 } |
211 | 211 |
212 protected: | 212 protected: |
213 virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y, | 213 virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y, |
214 SkCanvas::Config8888) SK_OVERRIDE; | 214 SkCanvas::Config8888) SK_OVERRIDE; |
215 | 215 |
216 virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE; | 216 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; |
217 | 217 |
218 private: | 218 private: |
219 // TODO(vandebo): push most of SkPDFDevice's state into a core object in | 219 // TODO(vandebo): push most of SkPDFDevice's state into a core object in |
220 // order to get the right access levels without using friend. | 220 // order to get the right access levels without using friend. |
221 friend class ScopedContentEntry; | 221 friend class ScopedContentEntry; |
222 | 222 |
223 SkISize fPageSize; | 223 SkISize fPageSize; |
224 SkISize fContentSize; | 224 SkISize fContentSize; |
225 SkMatrix fInitialTransform; | 225 SkMatrix fInitialTransform; |
226 SkClipStack fExistingClipStack; | 226 SkClipStack fExistingClipStack; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 | 333 |
334 typedef SkBitmapDevice INHERITED; | 334 typedef SkBitmapDevice INHERITED; |
335 | 335 |
336 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 336 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
337 // an SkPDFDevice | 337 // an SkPDFDevice |
338 //friend class SkDocument_PDF; | 338 //friend class SkDocument_PDF; |
339 //friend class SkPDFImageShader; | 339 //friend class SkPDFImageShader; |
340 }; | 340 }; |
341 | 341 |
342 #endif | 342 #endif |
OLD | NEW |