| OLD | NEW |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 * Creates an empty canvas with no backing device/pixels, and zero | 80 * Creates an empty canvas with no backing device/pixels, and zero |
| 81 * dimensions. | 81 * dimensions. |
| 82 */ | 82 */ |
| 83 SkCanvas(); | 83 SkCanvas(); |
| 84 | 84 |
| 85 /** | 85 /** |
| 86 * Creates a canvas of the specified dimensions, but explicitly not backed | 86 * Creates a canvas of the specified dimensions, but explicitly not backed |
| 87 * by any device/pixels. Typically this use used by subclasses who handle | 87 * by any device/pixels. Typically this use used by subclasses who handle |
| 88 * the draw calls in some other way. | 88 * the draw calls in some other way. |
| 89 */ | 89 */ |
| 90 SkCanvas(int width, int height); | 90 SkCanvas(int width, int height, const SkSurfaceProps* = NULL); |
| 91 | 91 |
| 92 /** Construct a canvas with the specified device to draw into. | 92 /** Construct a canvas with the specified device to draw into. |
| 93 | 93 |
| 94 @param device Specifies a device for the canvas to draw into. | 94 @param device Specifies a device for the canvas to draw into. |
| 95 */ | 95 */ |
| 96 explicit SkCanvas(SkBaseDevice* device); | 96 explicit SkCanvas(SkBaseDevice* device); |
| 97 | 97 |
| 98 /** Construct a canvas with the specified bitmap to draw into. | 98 /** Construct a canvas with the specified bitmap to draw into. |
| 99 @param bitmap Specifies a bitmap for the canvas to draw into. Its | 99 @param bitmap Specifies a bitmap for the canvas to draw into. Its |
| 100 structure are copied to the canvas. | 100 structure are copied to the canvas. |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 | 1485 |
| 1486 class SkCanvasClipVisitor { | 1486 class SkCanvasClipVisitor { |
| 1487 public: | 1487 public: |
| 1488 virtual ~SkCanvasClipVisitor(); | 1488 virtual ~SkCanvasClipVisitor(); |
| 1489 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1489 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1490 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1490 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1491 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1491 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1492 }; | 1492 }; |
| 1493 | 1493 |
| 1494 #endif | 1494 #endif |
| OLD | NEW |