1aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org/* 2aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org * Copyright 2014 Google Inc. 3aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org * 4aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org * Use of this source code is governed by a BSD-style license that can be 5aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org * found in the LICENSE file. 6aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org */ 7aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org 8aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org#ifndef SkTwoPointConicalGradient_gpu_DEFINED 91cf21d2835065e065f25347499e4d27a4df6d590commit-bot@chromium.org#define SkTwoPointConicalGradient_gpu_DEFINED 10aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org 11aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org#include "SkGradientShaderPriv.h" 12aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org 13aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.orgclass GrEffectRef; 14aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.orgclass SkTwoPointConicalGradient; 15aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org 162af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.orgnamespace Gr2PtConicalGradientEffect { 172af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org /** 182af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org * Creates an effect that produces a two point conical gradient based on the 192af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org * shader passed in. 202af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org */ 212af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org GrEffectRef* Create(GrContext* ctx, const SkTwoPointConicalGradient& shader, 2296fb7489ba46909c3f81bb2d94755e7d4ccb5fadcommit-bot@chromium.org SkShader::TileMode tm, const SkMatrix* localMatrix); 23aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org}; 242af1a2dbc46ea41e6208ad0c8681f98bd9b27bd8commit-bot@chromium.org 25aa64fbfd349789f27b3cc35c1968d9dc0612cf8ecommit-bot@chromium.org#endif 26