Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: include/pdf/SkPDFDevice.h

Issue 199413013: add new readPixels with direct memory parameters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
211 virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y, 212 virtual bool onReadPixels(const SkBitmap& bitmap, int x, int y,
212 SkCanvas::Config8888) SK_OVERRIDE; 213 SkCanvas::Config8888) SK_OVERRIDE;
213 214 #endif
214 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE; 215 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE;
215 216
216 private: 217 private:
217 // TODO(vandebo): push most of SkPDFDevice's state into a core object in 218 // TODO(vandebo): push most of SkPDFDevice's state into a core object in
218 // order to get the right access levels without using friend. 219 // order to get the right access levels without using friend.
219 friend class ScopedContentEntry; 220 friend class ScopedContentEntry;
220 221
221 SkISize fPageSize; 222 SkISize fPageSize;
222 SkISize fContentSize; 223 SkISize fContentSize;
223 SkMatrix fInitialTransform; 224 SkMatrix fInitialTransform;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 329
329 typedef SkBitmapDevice INHERITED; 330 typedef SkBitmapDevice INHERITED;
330 331
331 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 332 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
332 // an SkPDFDevice 333 // an SkPDFDevice
333 //friend class SkDocument_PDF; 334 //friend class SkDocument_PDF;
334 //friend class SkPDFImageShader; 335 //friend class SkPDFImageShader;
335 }; 336 };
336 337
337 #endif 338 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698