| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 /** | 118 /** |
| 119 * Return ImageInfo for this canvas. If the canvas is not backed by pixels | 119 * Return ImageInfo for this canvas. If the canvas is not backed by pixels |
| 120 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. | 120 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. |
| 121 */ | 121 */ |
| 122 SkImageInfo imageInfo() const; | 122 SkImageInfo imageInfo() const; |
| 123 | 123 |
| 124 /////////////////////////////////////////////////////////////////////////// | 124 /////////////////////////////////////////////////////////////////////////// |
| 125 | 125 |
| 126 /** | 126 /** |
| 127 * Trigger the immediate execution of all pending draw operations. | 127 * Trigger the immediate execution of all pending draw operations. For the
GPU |
| 128 * backend this will resolve all rendering to the GPU surface backing the |
| 129 * SkSurface that owns this canvas. |
| 128 */ | 130 */ |
| 129 void flush(); | 131 void flush(); |
| 130 | 132 |
| 131 /** | 133 /** |
| 132 * Gets the size of the base or root layer in global canvas coordinates. The | 134 * Gets the size of the base or root layer in global canvas coordinates. The |
| 133 * origin of the base layer is always (0,0). The current drawable area may b
e | 135 * origin of the base layer is always (0,0). The current drawable area may b
e |
| 134 * smaller (due to clipping or saveLayer). | 136 * smaller (due to clipping or saveLayer). |
| 135 */ | 137 */ |
| 136 virtual SkISize getBaseLayerSize() const; | 138 virtual SkISize getBaseLayerSize() const; |
| 137 | 139 |
| (...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1493 | 1495 |
| 1494 class SkCanvasClipVisitor { | 1496 class SkCanvasClipVisitor { |
| 1495 public: | 1497 public: |
| 1496 virtual ~SkCanvasClipVisitor(); | 1498 virtual ~SkCanvasClipVisitor(); |
| 1497 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1499 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1498 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1500 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1499 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1501 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1500 }; | 1502 }; |
| 1501 | 1503 |
| 1502 #endif | 1504 #endif |
| OLD | NEW |