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 */ | 206 */ |
207 void setRasterDpi(SkScalar rasterDpi) { | 207 void setRasterDpi(SkScalar rasterDpi) { |
208 fRasterDpi = rasterDpi; | 208 fRasterDpi = rasterDpi; |
209 } | 209 } |
210 | 210 |
211 protected: | 211 protected: |
212 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE { | 212 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE { |
213 return fLegacyBitmap; | 213 return fLegacyBitmap; |
214 } | 214 } |
215 | 215 |
216 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { | |
217 return false; | |
218 } | |
219 | |
220 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_
OVERRIDE; | 216 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_
OVERRIDE; |
221 | 217 |
222 private: | 218 private: |
223 // 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 |
224 // order to get the right access levels without using friend. | 220 // order to get the right access levels without using friend. |
225 friend class ScopedContentEntry; | 221 friend class ScopedContentEntry; |
226 | 222 |
227 SkISize fPageSize; | 223 SkISize fPageSize; |
228 SkISize fContentSize; | 224 SkISize fContentSize; |
229 SkMatrix fInitialTransform; | 225 SkMatrix fInitialTransform; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 332 |
337 typedef SkBaseDevice INHERITED; | 333 typedef SkBaseDevice INHERITED; |
338 | 334 |
339 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create | 335 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to
create |
340 // an SkPDFDevice | 336 // an SkPDFDevice |
341 //friend class SkDocument_PDF; | 337 //friend class SkDocument_PDF; |
342 //friend class SkPDFImageShader; | 338 //friend class SkPDFImageShader; |
343 }; | 339 }; |
344 | 340 |
345 #endif | 341 #endif |
OLD | NEW |