Remove SkBlitter::getShaderContext()
authorFlorin Malita <fmalita@chromium.org>
Thu, 26 Jan 2017 17:33:20 +0000 (12:33 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 26 Jan 2017 18:09:36 +0000 (18:09 +0000)
Unused.  Also ComposeShaderContext::getShaderContext{A,B}.

R=reed@google.com,mtklein@google.com

Change-Id: I36a8346f0c7e842455774339f388c04920db0040
Reviewed-on: https://skia-review.googlesource.com/7613
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Florin Malita <fmalita@chromium.org>

src/core/SkBlitter.cpp
src/core/SkBlitter.h
src/core/SkComposeShader.h
src/core/SkCoreBlitters.h

index 86c49d0..d3c60b7 100644 (file)
@@ -29,10 +29,6 @@ bool SkBlitter::resetShaderContext(const SkShader::ContextRec&) {
     return true;
 }
 
-SkShader::Context* SkBlitter::getShaderContext() const {
-    return nullptr;
-}
-
 const SkPixmap* SkBlitter::justAnOpaqueColor(uint32_t* value) {
     return nullptr;
 }
index fd6ca8c..ac4712e 100644 (file)
@@ -111,7 +111,6 @@ public:
      *  Special methods for SkShaderBlitter. On all other classes this is a no-op.
      */
     virtual bool resetShaderContext(const SkShader::ContextRec&);
-    virtual SkShader::Context* getShaderContext() const;
 
     /**
      * Special methods for blitters that can blit more than one row at a time.
index 95da9c8..7f9ff69 100644 (file)
@@ -45,9 +45,6 @@ public:
         ComposeShaderContext(const SkComposeShader&, const ContextRec&,
                              SkShader::Context* contextA, SkShader::Context* contextB);
 
-        SkShader::Context* getShaderContextA() const { return fShaderContextA; }
-        SkShader::Context* getShaderContextB() const { return fShaderContextB; }
-
         virtual ~ComposeShaderContext();
 
         void shadeSpan(int x, int y, SkPMColor[], int count) override;
index 23fca0f..3ff1e1d 100644 (file)
@@ -44,8 +44,6 @@ public:
       */
     bool resetShaderContext(const SkShader::ContextRec&) override;
 
-    SkShader::Context* getShaderContext() const override { return fShaderContext; }
-
 protected:
     uint32_t            fShaderFlags;
     const SkShader*     fShader;