aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/core/SkShader.h2
-rw-r--r--src/core/SkShader.cpp1
2 files changed, 0 insertions, 3 deletions
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 108c6b0829..da23a20a4b 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -359,7 +359,6 @@ protected:
// These can be called by your subclass after setContext() has been called
uint8_t getPaintAlpha() const { return fPaintAlpha; }
- SkBitmap::Config getDeviceConfig() const { return (SkBitmap::Config)fDeviceConfig; }
const SkMatrix& getTotalInverse() const { return fTotalInverse; }
MatrixClass getInverseClass() const { return (MatrixClass)fTotalInverseClass; }
@@ -369,7 +368,6 @@ private:
SkMatrix fLocalMatrix;
SkMatrix fTotalInverse;
uint8_t fPaintAlpha;
- uint8_t fDeviceConfig;
uint8_t fTotalInverseClass;
SkDEBUGCODE(SkBool8 fInSetContext;)
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp
index bebfc59912..47889f0d09 100644
--- a/src/core/SkShader.cpp
+++ b/src/core/SkShader.cpp
@@ -50,7 +50,6 @@ bool SkShader::setContext(const SkBitmap& device,
const SkMatrix* m = &matrix;
SkMatrix total;
- fDeviceConfig = SkToU8(device.config());
fPaintAlpha = paint.getAlpha();
if (this->hasLocalMatrix()) {
total.setConcat(matrix, this->getLocalMatrix());