Index: src/core/SkBitmapProcShader.h |
diff --git a/src/core/SkBitmapProcShader.h b/src/core/SkBitmapProcShader.h |
index b897c6e500014978b463425fbe44cfa79ac4db86..9f4c16202c0047c13f6fc7a94e9de3ad879e0e9d 100644 |
--- a/src/core/SkBitmapProcShader.h |
+++ b/src/core/SkBitmapProcShader.h |
@@ -1,4 +1,3 @@ |
- |
/* |
* Copyright 2006 The Android Open Source Project |
* |
@@ -6,7 +5,6 @@ |
* found in the LICENSE file. |
*/ |
- |
#ifndef SkBitmapProcShader_DEFINED |
#define SkBitmapProcShader_DEFINED |
@@ -23,7 +21,7 @@ public: |
bool isOpaque() const override; |
- size_t contextSize(const ContextRec&) const override { return ContextSize(); } |
+ size_t contextSize(const ContextRec& rec) const override { return ContextSize(rec); } |
SK_TO_STRING_OVERRIDE() |
SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapProcShader) |
@@ -34,25 +32,6 @@ public: |
#endif |
protected: |
- class BitmapProcShaderContext : public SkShader::Context { |
- public: |
- // The context takes ownership of the state. It will call its destructor |
- // but will NOT free the memory. |
- BitmapProcShaderContext(const SkShader&, const ContextRec&, SkBitmapProcState*); |
- ~BitmapProcShaderContext() override; |
- |
- void shadeSpan(int x, int y, SkPMColor dstC[], int count) override; |
- ShadeProc asAShadeProc(void** ctx) override; |
- |
- uint32_t getFlags() const override { return fFlags; } |
- |
- private: |
- SkBitmapProcState* fState; |
- uint32_t fFlags; |
- |
- typedef SkShader::Context INHERITED; |
- }; |
- |
void flatten(SkWriteBuffer&) const override; |
Context* onCreateContext(const ContextRec&, void* storage) const override; |
bool onIsABitmap(SkBitmap*, SkMatrix*, TileMode*) const override; |
@@ -63,7 +42,7 @@ protected: |
private: |
friend class SkImageShader; |
- static size_t ContextSize(); |
+ static size_t ContextSize(const ContextRec&); |
static Context* MakeContext(const SkShader&, TileMode tmx, TileMode tmy, |
const SkBitmapProvider&, const ContextRec&, void* storage); |