| Index: src/core/SkBitmapProcShader.h
|
| diff --git a/src/core/SkBitmapProcShader.h b/src/core/SkBitmapProcShader.h
|
| index a83fda762868826c75ba3f185cf5e59978ba340d..9f4c16202c0047c13f6fc7a94e9de3ad879e0e9d 100644
|
| --- a/src/core/SkBitmapProcShader.h
|
| +++ b/src/core/SkBitmapProcShader.h
|
| @@ -21,9 +21,7 @@
|
|
|
| bool isOpaque() const override;
|
|
|
| - size_t contextSize(const ContextRec& rec) const override {
|
| - return ContextSize(rec, fRawBitmap.info());
|
| - }
|
| + size_t contextSize(const ContextRec& rec) const override { return ContextSize(rec); }
|
|
|
| SK_TO_STRING_OVERRIDE()
|
| SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader)
|
| @@ -38,13 +36,13 @@
|
| Context* onCreateContext(const ContextRec&, void* storage) const override;
|
| bool onIsABitmap(SkBitmap*, SkMatrix*, TileMode*) const override;
|
|
|
| - SkBitmap fRawBitmap;
|
| + SkBitmap fRawBitmap; // experimental for RLE encoding
|
| uint8_t fTileModeX, fTileModeY;
|
|
|
| private:
|
| friend class SkImageShader;
|
|
|
| - static size_t ContextSize(const ContextRec&, const SkImageInfo& srcInfo);
|
| + static size_t ContextSize(const ContextRec&);
|
| static Context* MakeContext(const SkShader&, TileMode tmx, TileMode tmy,
|
| const SkBitmapProvider&, const ContextRec&, void* storage);
|
|
|
| @@ -56,7 +54,7 @@
|
| // an Sk3DBlitter in SkDraw.cpp
|
| // Note that some contexts may contain other contexts (e.g. for compose shaders), but we've not
|
| // yet found a situation where the size below isn't big enough.
|
| -typedef SkSmallAllocator<3, 2100> SkTBlitterAllocator;
|
| +typedef SkSmallAllocator<3, 1500> SkTBlitterAllocator;
|
|
|
| // If alloc is non-nullptr, it will be used to allocate the returned SkShader, and MUST outlive
|
| // the SkShader.
|
|
|