62e9b145a1
Reason for revert: Shader compilation failure Original issue's description: > Add GM/slide to simulate Android-style reveal clip > > Hopefully, this will let us play w/ geometric and shader-based solutions. > > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2316593003 > > Committed: https://skia.googlesource.com/skia/+/ffac5c4aae18fc706e4077763c190a89c8507fb0 TBR=jvanverth@google.com,djsollen@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review-Url: https://codereview.chromium.org/2316303002
25 lines
592 B
C++
25 lines
592 B
C++
/*
|
|
* Copyright 2016 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkGaussianEdgeShader_DEFINED
|
|
#define SkGaussianEdgeShader_DEFINED
|
|
|
|
#include "SkShader.h"
|
|
|
|
class SK_API SkGaussianEdgeShader {
|
|
public:
|
|
/** Returns a shader that applies a Gaussian blur depending on distance to the edge
|
|
* Currently this is only useable with Circle and RRect shapes on the GPU backend.
|
|
* Raster will draw nothing.
|
|
*/
|
|
static sk_sp<SkShader> Make();
|
|
|
|
SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP()
|
|
};
|
|
|
|
#endif
|