9911630fc2
Related chrome CL: https://chromium-review.googlesource.com/c/chromium/src/+/2646604 Bug: skia:7650 Change-Id: I1069a6151cb70bb6d2c743cf2513f47284c9df7b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/358221 Commit-Queue: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com> Auto-Submit: Mike Reed <reed@google.com>
13 lines
539 B
C++
13 lines
539 B
C++
// Copyright 2020 Google LLC.
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
#include "tools/fiddle/examples.h"
|
|
REG_FIDDLE(draw_image_nine_blur_mask, 256, 256, false, 6) {
|
|
void draw(SkCanvas* canvas) {
|
|
SkPaint paint;
|
|
paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 6, false));
|
|
canvas->clear(0xFFFF4444);
|
|
canvas->drawImageNine(image.get(), {16, 16, 48, 48}, {8, 8, 248, 248},
|
|
SkFilterMode::kNearest, &paint);
|
|
}
|
|
} // END FIDDLE
|