robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "GrBlurUtils.h" |
| 9 | #include "GrDrawContext.h" |
bsalomon | 7622863 | 2015-05-29 08:02:10 -0700 | [diff] [blame] | 10 | #include "GrCaps.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 11 | #include "GrContext.h" |
csmartdalton | 02fa32c | 2016-08-19 13:29:27 -0700 | [diff] [blame] | 12 | #include "GrFixedClip.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 13 | #include "effects/GrSimpleTextureEffect.h" |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 14 | #include "GrStyle.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 15 | #include "GrTexture.h" |
| 16 | #include "GrTextureProvider.h" |
| 17 | #include "SkDraw.h" |
bsalomon | f1b7a1d | 2015-09-28 06:26:28 -0700 | [diff] [blame] | 18 | #include "SkGrPriv.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 19 | #include "SkMaskFilter.h" |
| 20 | #include "SkPaint.h" |
csmartdalton | c6f411e | 2016-08-05 22:32:12 -0700 | [diff] [blame] | 21 | #include "SkTLazy.h" |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 22 | |
| 23 | static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { |
| 24 | return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); |
| 25 | } |
| 26 | |
| 27 | // Draw a mask using the supplied paint. Since the coverage/geometry |
| 28 | // is already burnt into the mask this boils down to a rect draw. |
| 29 | // Return true if the mask was successfully drawn. |
| 30 | static bool draw_mask(GrDrawContext* drawContext, |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 31 | const GrClip& clip, |
| 32 | const SkMatrix& viewMatrix, |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 33 | const SkIRect& maskRect, |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 34 | GrPaint* grp, |
| 35 | GrTexture* mask) { |
| 36 | SkMatrix matrix; |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 37 | matrix.setTranslate(-SkIntToScalar(maskRect.fLeft), -SkIntToScalar(maskRect.fTop)); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 38 | matrix.postIDiv(mask->width(), mask->height()); |
Brian Salomon | 2ebd0c8 | 2016-10-03 17:15:28 -0400 | [diff] [blame^] | 39 | matrix.preConcat(viewMatrix); |
| 40 | grp->addCoverageFragmentProcessor(GrSimpleTextureEffect::Make(mask, nullptr, matrix)); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 41 | |
| 42 | SkMatrix inverse; |
| 43 | if (!viewMatrix.invert(&inverse)) { |
| 44 | return false; |
| 45 | } |
Brian Salomon | 2ebd0c8 | 2016-10-03 17:15:28 -0400 | [diff] [blame^] | 46 | drawContext->fillRectWithLocalMatrix(clip, *grp, SkMatrix::I(), SkRect::Make(maskRect), |
| 47 | inverse); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 48 | return true; |
| 49 | } |
| 50 | |
robertphillips | 0e7029e | 2015-11-30 05:45:06 -0800 | [diff] [blame] | 51 | static bool sw_draw_with_mask_filter(GrDrawContext* drawContext, |
| 52 | GrTextureProvider* textureProvider, |
| 53 | const GrClip& clipData, |
| 54 | const SkMatrix& viewMatrix, |
| 55 | const SkPath& devPath, |
| 56 | const SkMaskFilter* filter, |
| 57 | const SkIRect& clipBounds, |
| 58 | GrPaint* grp, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 59 | SkStrokeRec::InitStyle fillOrHairline) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 60 | SkMask srcM, dstM; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 61 | if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 62 | SkMask::kComputeBoundsAndRenderImage_CreateMode, fillOrHairline)) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 63 | return false; |
| 64 | } |
| 65 | SkAutoMaskFreeImage autoSrc(srcM.fImage); |
| 66 | |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 67 | if (!filter->filterMask(&dstM, srcM, viewMatrix, nullptr)) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 68 | return false; |
| 69 | } |
| 70 | // this will free-up dstM when we're done (allocated in filterMask()) |
| 71 | SkAutoMaskFreeImage autoDst(dstM.fImage); |
| 72 | |
| 73 | if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | // we now have a device-aligned 8bit mask in dstM, ready to be drawn using |
| 78 | // the current clip (and identity matrix) and GrPaint settings |
| 79 | GrSurfaceDesc desc; |
| 80 | desc.fWidth = dstM.fBounds.width(); |
| 81 | desc.fHeight = dstM.fBounds.height(); |
| 82 | desc.fConfig = kAlpha_8_GrPixelConfig; |
| 83 | |
bsalomon | eae6200 | 2015-07-31 13:59:30 -0700 | [diff] [blame] | 84 | SkAutoTUnref<GrTexture> texture(textureProvider->createApproxTexture(desc)); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 85 | if (!texture) { |
| 86 | return false; |
| 87 | } |
| 88 | texture->writePixels(0, 0, desc.fWidth, desc.fHeight, desc.fConfig, |
| 89 | dstM.fImage, dstM.fRowBytes); |
| 90 | |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 91 | return draw_mask(drawContext, clipData, viewMatrix, dstM.fBounds, grp, texture); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | // Create a mask of 'devPath' and place the result in 'mask'. |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 95 | static sk_sp<GrTexture> create_mask_GPU(GrContext* context, |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 96 | const SkIRect& maskRect, |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 97 | const SkPath& devPath, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 98 | SkStrokeRec::InitStyle fillOrHairline, |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 99 | bool doAA, |
| 100 | int sampleCnt) { |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 101 | if (!doAA) { |
| 102 | // Don't need MSAA if mask isn't AA |
| 103 | sampleCnt = 0; |
| 104 | } |
| 105 | |
robertphillips | 48fde9c | 2016-09-06 05:20:20 -0700 | [diff] [blame] | 106 | sk_sp<GrDrawContext> drawContext(context->makeDrawContextWithFallback(SkBackingFit::kApprox, |
| 107 | maskRect.width(), |
| 108 | maskRect.height(), |
| 109 | kAlpha_8_GrPixelConfig, |
| 110 | nullptr, |
| 111 | sampleCnt)); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 112 | if (!drawContext) { |
halcanary | 96fcdcc | 2015-08-27 07:41:13 -0700 | [diff] [blame] | 113 | return nullptr; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 114 | } |
| 115 | |
robertphillips | 2e1e51f | 2015-10-15 08:01:48 -0700 | [diff] [blame] | 116 | drawContext->clear(nullptr, 0x0, true); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 117 | |
| 118 | GrPaint tempPaint; |
| 119 | tempPaint.setAntiAlias(doAA); |
| 120 | tempPaint.setCoverageSetOpXPFactory(SkRegion::kReplace_Op); |
| 121 | |
| 122 | // setup new clip |
cdalton | 846c051 | 2016-05-13 10:25:00 -0700 | [diff] [blame] | 123 | const SkIRect clipRect = SkIRect::MakeWH(maskRect.width(), maskRect.height()); |
| 124 | GrFixedClip clip(clipRect); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 125 | |
robertphillips | 3833daa | 2015-09-14 11:18:13 -0700 | [diff] [blame] | 126 | // Draw the mask into maskTexture with the path's integerized top-left at |
| 127 | // the origin using tempPaint. |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 128 | SkMatrix translate; |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 129 | translate.setTranslate(-SkIntToScalar(maskRect.fLeft), -SkIntToScalar(maskRect.fTop)); |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 130 | drawContext->drawPath(clip, tempPaint, translate, devPath, GrStyle(fillOrHairline)); |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 131 | return drawContext->asTexture();; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 132 | } |
| 133 | |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 134 | static void draw_path_with_mask_filter(GrContext* context, |
| 135 | GrDrawContext* drawContext, |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 136 | const GrClip& clip, |
| 137 | GrPaint* paint, |
| 138 | const SkMatrix& viewMatrix, |
| 139 | const SkMaskFilter* maskFilter, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 140 | const GrStyle& style, |
| 141 | const SkPath* path, |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 142 | bool pathIsMutable) { |
| 143 | SkASSERT(maskFilter); |
| 144 | |
| 145 | SkIRect clipBounds; |
robertphillips | 7bceedc | 2015-12-01 12:51:26 -0800 | [diff] [blame] | 146 | clip.getConservativeBounds(drawContext->width(), drawContext->height(), &clipBounds); |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 147 | SkTLazy<SkPath> tmpPath; |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 148 | SkStrokeRec::InitStyle fillOrHairline; |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 149 | |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 150 | // We just fully apply the style here. |
| 151 | if (style.applies()) { |
senorblanco | b6a40b8 | 2016-08-19 08:07:22 -0700 | [diff] [blame] | 152 | SkScalar scale = GrStyle::MatrixToScaleFactor(viewMatrix); |
| 153 | if (0 == scale || !style.applyToPath(tmpPath.init(), &fillOrHairline, *path, scale)) { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 154 | return; |
| 155 | } |
| 156 | pathIsMutable = true; |
| 157 | path = tmpPath.get(); |
| 158 | } else if (style.isSimpleHairline()) { |
| 159 | fillOrHairline = SkStrokeRec::kHairline_InitStyle; |
bsalomon | 055e192 | 2016-05-06 07:22:58 -0700 | [diff] [blame] | 160 | } else { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 161 | SkASSERT(style.isSimpleFill()); |
| 162 | fillOrHairline = SkStrokeRec::kFill_InitStyle; |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 163 | } |
| 164 | |
| 165 | // transform the path into device space |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 166 | if (!viewMatrix.isIdentity()) { |
| 167 | SkPath* result; |
| 168 | if (pathIsMutable) { |
| 169 | result = const_cast<SkPath*>(path); |
| 170 | } else { |
| 171 | if (!tmpPath.isValid()) { |
| 172 | tmpPath.init(); |
| 173 | } |
| 174 | result = tmpPath.get(); |
| 175 | } |
| 176 | path->transform(viewMatrix, result); |
| 177 | path = result; |
| 178 | result->setIsVolatile(true); |
| 179 | pathIsMutable = true; |
| 180 | } |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 181 | |
| 182 | SkRect maskRect; |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 183 | if (maskFilter->canFilterMaskGPU(SkRRect::MakeRect(path->getBounds()), |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 184 | clipBounds, |
| 185 | viewMatrix, |
| 186 | &maskRect)) { |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 187 | // This mask will ultimately be drawn as a non-AA rect (see draw_mask). |
| 188 | // Non-AA rects have a bad habit of snapping arbitrarily. Integerize here |
| 189 | // so the mask draws in a reproducible manner. |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 190 | SkIRect finalIRect; |
| 191 | maskRect.roundOut(&finalIRect); |
| 192 | if (clip_bounds_quick_reject(clipBounds, finalIRect)) { |
| 193 | // clipped out |
| 194 | return; |
| 195 | } |
| 196 | |
| 197 | if (maskFilter->directFilterMaskGPU(context->textureProvider(), |
| 198 | drawContext, |
| 199 | paint, |
| 200 | clip, |
| 201 | viewMatrix, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 202 | SkStrokeRec(fillOrHairline), |
| 203 | *path)) { |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 204 | // the mask filter was able to draw itself directly, so there's nothing |
| 205 | // left to do. |
| 206 | return; |
| 207 | } |
| 208 | |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 209 | sk_sp<GrTexture> mask(create_mask_GPU(context, |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 210 | finalIRect, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 211 | *path, |
| 212 | fillOrHairline, |
robertphillips | d4c741e | 2016-04-28 09:55:15 -0700 | [diff] [blame] | 213 | paint->isAntiAlias(), |
| 214 | drawContext->numColorSamples())); |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 215 | if (mask) { |
| 216 | GrTexture* filtered; |
| 217 | |
robertphillips | 8bad3ac | 2016-06-27 11:11:05 -0700 | [diff] [blame] | 218 | if (maskFilter->filterMaskGPU(mask.get(), viewMatrix, finalIRect, &filtered)) { |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 219 | // filterMaskGPU gives us ownership of a ref to the result |
| 220 | SkAutoTUnref<GrTexture> atu(filtered); |
robertphillips | f054b17 | 2016-05-13 05:06:19 -0700 | [diff] [blame] | 221 | if (draw_mask(drawContext, clip, viewMatrix, finalIRect, paint, filtered)) { |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 222 | // This path is completely drawn |
| 223 | return; |
| 224 | } |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | |
robertphillips | 0e7029e | 2015-11-30 05:45:06 -0800 | [diff] [blame] | 229 | sw_draw_with_mask_filter(drawContext, context->textureProvider(), |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 230 | clip, viewMatrix, *path, |
| 231 | maskFilter, clipBounds, paint, fillOrHairline); |
| 232 | } |
| 233 | |
| 234 | void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, |
| 235 | GrDrawContext* drawContext, |
| 236 | const GrClip& clip, |
| 237 | const SkPath& path, |
| 238 | GrPaint* paint, |
| 239 | const SkMatrix& viewMatrix, |
| 240 | const SkMaskFilter* mf, |
| 241 | const GrStyle& style, |
| 242 | bool pathIsMutable) { |
| 243 | draw_path_with_mask_filter(context, drawContext, clip, paint, viewMatrix, mf, |
| 244 | style, &path, pathIsMutable); |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | void GrBlurUtils::drawPathWithMaskFilter(GrContext* context, |
| 248 | GrDrawContext* drawContext, |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 249 | const GrClip& clip, |
| 250 | const SkPath& origPath, |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 251 | const SkPaint& paint, |
| 252 | const SkMatrix& origViewMatrix, |
| 253 | const SkMatrix* prePathMatrix, |
| 254 | const SkIRect& clipBounds, |
| 255 | bool pathIsMutable) { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 256 | SkASSERT(!pathIsMutable || origPath.isVolatile()); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 257 | |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 258 | GrStyle style(paint); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 259 | // If we have a prematrix, apply it to the path, optimizing for the case |
| 260 | // where the original path can in fact be modified in place (even though |
| 261 | // its parameter type is const). |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 262 | |
| 263 | const SkPath* path = &origPath; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 264 | SkTLazy<SkPath> tmpPath; |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 265 | |
| 266 | SkMatrix viewMatrix = origViewMatrix; |
| 267 | |
| 268 | if (prePathMatrix) { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 269 | // Styling, blurs, and shading are supposed to be applied *after* the prePathMatrix. |
| 270 | if (!paint.getMaskFilter() && !paint.getShader() && !style.applies()) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 271 | viewMatrix.preConcat(*prePathMatrix); |
| 272 | } else { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 273 | SkPath* result = pathIsMutable ? const_cast<SkPath*>(path) : tmpPath.init(); |
| 274 | pathIsMutable = true; |
| 275 | path->transform(*prePathMatrix, result); |
| 276 | path = result; |
| 277 | result->setIsVolatile(true); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 278 | } |
| 279 | } |
| 280 | // at this point we're done with prePathMatrix |
| 281 | SkDEBUGCODE(prePathMatrix = (const SkMatrix*)0x50FF8001;) |
| 282 | |
| 283 | GrPaint grPaint; |
brianosman | 8fe485b | 2016-07-25 12:31:51 -0700 | [diff] [blame] | 284 | if (!SkPaintToGrPaint(context, drawContext, paint, viewMatrix, &grPaint)) { |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 285 | return; |
| 286 | } |
| 287 | |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 288 | if (paint.getMaskFilter()) { |
robertphillips | 7bceedc | 2015-12-01 12:51:26 -0800 | [diff] [blame] | 289 | draw_path_with_mask_filter(context, drawContext, clip, &grPaint, viewMatrix, |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 290 | paint.getMaskFilter(), style, |
| 291 | path, pathIsMutable); |
bsalomon | c55271f | 2015-11-09 11:55:57 -0800 | [diff] [blame] | 292 | } else { |
bsalomon | 6663acf | 2016-05-10 09:14:17 -0700 | [diff] [blame] | 293 | drawContext->drawPath(clip, grPaint, viewMatrix, *path, style); |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 294 | } |
robertphillips | ccb1b57 | 2015-05-27 11:02:55 -0700 | [diff] [blame] | 295 | } |