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 "src/core/SkImagePriv.h" 11 #include "src/shaders/SkShaderBase.h" 12 13 class SkImage_Base; 14 15 class SkBitmapProcLegacyShader : public SkShaderBase { 16 private: 17 friend class SkImageShader; 18 19 static Context* MakeContext(const SkShaderBase&, SkTileMode tmx, SkTileMode tmy, 20 const SkSamplingOptions&, const SkImage_Base*, 21 const ContextRec&, SkArenaAlloc* alloc); 22 23 using INHERITED = SkShaderBase; 24 }; 25 26 #endif 27