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

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

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add new file Created 6 years, 3 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
« no previous file with comments | « include/core/SkSurfaceProps.h ('k') | include/utils/SkNoSaveLayerCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { 216 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE {
217 return false; 217 return false;
218 } 218 }
219 219
220 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 220 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_ OVERRIDE;
221 221
222 private: 222 private:
223 // TODO(vandebo): push most of SkPDFDevice's state into a core object in 223 // TODO(vandebo): push most of SkPDFDevice's state into a core object in
224 // order to get the right access levels without using friend. 224 // order to get the right access levels without using friend.
225 friend class ScopedContentEntry; 225 friend class ScopedContentEntry;
226 226
227 SkISize fPageSize; 227 SkISize fPageSize;
228 SkISize fContentSize; 228 SkISize fContentSize;
229 SkMatrix fInitialTransform; 229 SkMatrix fInitialTransform;
230 SkClipStack fExistingClipStack; 230 SkClipStack fExistingClipStack;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 typedef SkBaseDevice INHERITED; 337 typedef SkBaseDevice INHERITED;
338 338
339 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create 339 // TODO(edisonn): Only SkDocument_PDF and SkPDFImageShader should be able to create
340 // an SkPDFDevice 340 // an SkPDFDevice
341 //friend class SkDocument_PDF; 341 //friend class SkDocument_PDF;
342 //friend class SkPDFImageShader; 342 //friend class SkPDFImageShader;
343 }; 343 };
344 344
345 #endif 345 #endif
OLDNEW
« no previous file with comments | « include/core/SkSurfaceProps.h ('k') | include/utils/SkNoSaveLayerCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698