Chromium Code Reviews| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 virtual ~SkCanvas(); | 115 virtual ~SkCanvas(); |
| 116 | 116 |
| 117 SkMetaData& getMetaData(); | 117 SkMetaData& getMetaData(); |
| 118 | 118 |
| 119 /** | 119 /** |
| 120 * Return ImageInfo for this canvas. If the canvas is not backed by pixels | 120 * Return ImageInfo for this canvas. If the canvas is not backed by pixels |
| 121 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. | 121 * (cpu or gpu), then the info's ColorType will be kUnknown_SkColorType. |
| 122 */ | 122 */ |
| 123 SkImageInfo imageInfo() const; | 123 SkImageInfo imageInfo() const; |
| 124 | 124 |
| 125 /** | |
|
robertphillips
2016/04/05 12:54:34
move these over 1 ' ' ?
Brian Osman
2016/04/05 15:36:41
Acknowledged.
| |
| 126 * Return SurfaceProps for this canvas. If the canvas is not backed by pixel s | |
| 127 * (cpu or gpu), then this will return null. | |
| 128 */ | |
| 129 const SkSurfaceProps* props() const; | |
| 130 | |
| 125 /////////////////////////////////////////////////////////////////////////// | 131 /////////////////////////////////////////////////////////////////////////// |
| 126 | 132 |
| 127 /** | 133 /** |
| 128 * Trigger the immediate execution of all pending draw operations. For the GPU | 134 * Trigger the immediate execution of all pending draw operations. For the GPU |
| 129 * backend this will resolve all rendering to the GPU surface backing the | 135 * backend this will resolve all rendering to the GPU surface backing the |
| 130 * SkSurface that owns this canvas. | 136 * SkSurface that owns this canvas. |
| 131 */ | 137 */ |
| 132 void flush(); | 138 void flush(); |
| 133 | 139 |
| 134 /** | 140 /** |
| (...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1569 | 1575 |
| 1570 class SkCanvasClipVisitor { | 1576 class SkCanvasClipVisitor { |
| 1571 public: | 1577 public: |
| 1572 virtual ~SkCanvasClipVisitor(); | 1578 virtual ~SkCanvasClipVisitor(); |
| 1573 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1579 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; |
| 1574 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1580 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; |
| 1575 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1581 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; |
| 1576 }; | 1582 }; |
| 1577 | 1583 |
| 1578 #endif | 1584 #endif |
| OLD | NEW |