• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "SkImagePriv.h"
11 #include "SkShaderBase.h"
12 
13 class SkBitmapProvider;
14 
15 class SkBitmapProcLegacyShader : public SkShaderBase {
16 private:
17     friend class SkImageShader;
18 
19     static size_t ContextSize(const ContextRec&, const SkImageInfo& srcInfo);
20     static Context* MakeContext(const SkShaderBase&, TileMode tmx, TileMode tmy,
21                                 const SkBitmapProvider&, const ContextRec&, SkArenaAlloc* alloc);
22 
23     typedef SkShaderBase INHERITED;
24 };
25 
26 #endif
27