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

Side by Side Diff: include/core/SkCanvas.h

Issue 722043005: Revert of allow pictures to have a full bounds (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/SkBBHFactory.h ('k') | include/core/SkDevice.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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip 1328 friend class SkDebugCanvas; // needs experimental fAllowSimplifyClip
1329 friend class SkDeferredDevice; // needs getTopDevice() 1329 friend class SkDeferredDevice; // needs getTopDevice()
1330 friend class SkSurface_Raster; // needs getDevice() 1330 friend class SkSurface_Raster; // needs getDevice()
1331 friend class SkRecorder; // InitFlags 1331 friend class SkRecorder; // InitFlags
1332 friend class SkNoSaveLayerCanvas; // InitFlags 1332 friend class SkNoSaveLayerCanvas; // InitFlags
1333 1333
1334 enum InitFlags { 1334 enum InitFlags {
1335 kDefault_InitFlags = 0, 1335 kDefault_InitFlags = 0,
1336 kConservativeRasterClip_InitFlag = 1 << 0, 1336 kConservativeRasterClip_InitFlag = 1 << 0,
1337 }; 1337 };
1338 SkCanvas(const SkIRect& bounds, InitFlags); 1338 SkCanvas(int width, int height, InitFlags);
1339 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags); 1339 SkCanvas(SkBaseDevice*, const SkSurfaceProps*, InitFlags);
1340 SkCanvas(const SkBitmap&, const SkSurfaceProps&); 1340 SkCanvas(const SkBitmap&, const SkSurfaceProps&);
1341 1341
1342 // needs gettotalclip() 1342 // needs gettotalclip()
1343 friend class SkCanvasStateUtils; 1343 friend class SkCanvasStateUtils;
1344 1344
1345 // call this each time we attach ourselves to a device 1345 // call this each time we attach ourselves to a device
1346 // - constructor 1346 // - constructor
1347 // - internalSaveLayer 1347 // - internalSaveLayer
1348 void setupDevice(SkBaseDevice*); 1348 void setupDevice(SkBaseDevice*);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 1547
1548 class SkCanvasClipVisitor { 1548 class SkCanvasClipVisitor {
1549 public: 1549 public:
1550 virtual ~SkCanvasClipVisitor(); 1550 virtual ~SkCanvasClipVisitor();
1551 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1551 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1552 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1552 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1553 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1553 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1554 }; 1554 };
1555 1555
1556 #endif 1556 #endif
OLDNEW
« no previous file with comments | « include/core/SkBBHFactory.h ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698