| 1 |
/* |
| 2 |
* Copyright 2006 The Android Open Source Project |
| 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 |
#ifndef SkBitmapProcShader_DEFINED |
| 8 |
#define SkBitmapProcShader_DEFINED |
| 9 |
|
| 10 |
#include "include/core/SkSamplingOptions.h" |
| 11 |
#include "src/shaders/SkShaderBase.h" |
| 12 |
|
| 13 |
class SkArenaAlloc; |
| 14 |
class SkImage_Base; |
| 15 |
enum class SkTileMode; |
| 16 |
|
| 17 |
class SkBitmapProcLegacyShader : public SkShaderBase { |
| 18 |
private: |
| 19 |
friend class SkImageShader; |
| 20 |
|
| 21 |
static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy, |
| 22 |
const SkSamplingOptions&, const SkImage_Base*, |
| 23 |
const ContextRec&, SkArenaAlloc* alloc); |
| 24 |
|
| 25 |
using INHERITED = SkShaderBase; |
| 26 |
}; |
| 27 |
|
| 28 |
#endif |