b7dad44040
This reverts commit6dc14ded91
. Reason for revert: add flag to google3 Original change's description: > Revert "hide drawlooper from paint" > > This reverts commit766b42b7ba
. > > Reason for revert: afaict this is changing a lot of image filter GMs for the worse > > Original change's description: > > hide drawlooper from paint > > > > Bug: skia: 4783 > > > > Change-Id: I1d0ad1683a2e8345d8ea13db9b69b568ada827dc > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/228573 > > Reviewed-by: Florin Malita <fmalita@chromium.org> > > Commit-Queue: Mike Reed <reed@google.com> > > TBR=fmalita@chromium.org,reed@google.com > > Change-Id: I0bfd48ada3f8e48a774527caccf7abdb7a1cc470 > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Bug: skia: 4783 > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/229005 > Reviewed-by: Robert Phillips <robertphillips@google.com> > Commit-Queue: Robert Phillips <robertphillips@google.com> TBR=robertphillips@google.com,fmalita@chromium.org,reed@google.com Change-Id: Ib3cd8941a63cd323b8872dd7fec1c953ab81cbdc Bug: skia: 4783 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/229010 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Mike Reed <reed@google.com>
18 lines
624 B
C++
18 lines
624 B
C++
// Copyright 2019 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"
|
|
// HASH=bf10f838b330f0a3a3266d42ea68a638
|
|
REG_FIDDLE(Paint_setDrawLooper, 256, 128, false, 0) {
|
|
void draw(SkCanvas* canvas) {
|
|
#ifdef SK_SUPPORT_LEGACY_DRAWLOOPER
|
|
SkPaint paint;
|
|
paint.setDrawLooper(SkBlurDrawLooper::Make(0x7FFF0000, 4, -5, -10));
|
|
paint.setStyle(SkPaint::kStroke_Style);
|
|
paint.setStrokeWidth(10);
|
|
paint.setAntiAlias(true);
|
|
paint.setColor(0x7f0000ff);
|
|
canvas->drawCircle(70, 70, 50, paint);
|
|
#endif
|
|
}
|
|
} // END FIDDLE
|