blob: 54937c6ffbdd1ed308255653d5c20dc25c4c8a32 [file] [log] [blame]
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +00001/*
2 * Copyright 2014 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#ifndef SkTwoPointConicalGradient_gpu_DEFINED
commit-bot@chromium.org1cf21d22014-04-03 18:27:11 +00009#define SkTwoPointConicalGradient_gpu_DEFINED
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000010
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000011#include "SkGradientShaderPriv.h"
12
joshualittb0a8a372014-09-23 09:50:21 -070013class GrProcessor;
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000014class SkTwoPointConicalGradient;
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000015
commit-bot@chromium.org2af1a2d2014-04-04 13:50:50 +000016namespace Gr2PtConicalGradientEffect {
17 /**
18 * Creates an effect that produces a two point conical gradient based on the
19 * shader passed in.
20 */
joshualittb0a8a372014-09-23 09:50:21 -070021 GrFragmentProcessor* Create(GrContext* ctx, const SkTwoPointConicalGradient& shader,
22 SkShader::TileMode tm, const SkMatrix* localMatrix);
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000023};
commit-bot@chromium.org2af1a2d2014-04-04 13:50:50 +000024
commit-bot@chromium.orgaa64fbf2014-04-03 14:59:19 +000025#endif