Returns true when we explicitly need the shape of the drawing. */
| 106 | |
| 107 | /* Returns true when we explicitly need the shape of the drawing. */ |
| 108 | bool needShape() { |
| 109 | switch (blendMode) { |
| 110 | case BlendMode::Clear: |
| 111 | case BlendMode::Src: |
| 112 | case BlendMode::SrcIn: |
| 113 | case BlendMode::SrcOut: |
| 114 | case BlendMode::DstIn: |
| 115 | case BlendMode::DstOut: |
| 116 | case BlendMode::SrcATop: |
| 117 | case BlendMode::DstATop: |
| 118 | case BlendMode::Modulate: |
| 119 | return true; |
| 120 | default: |
| 121 | return false; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /* Returns true unless we only need the shape of the drawing. */ |
| 126 | bool needSource() { |