remove mention of 16-bit shader procs
This is all dead. Change-Id: Ifef5edb5c2402118cb289bbe31923f8de56bab23 Reviewed-on: https://skia-review.googlesource.com/c/171240 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
c3064e7c51
commit
08c891a20a
@ -161,7 +161,6 @@ bool SkBitmapProcState::chooseProcs() {
|
||||
fAlphaScale = SkAlpha255To256(SkColorGetA(fPaintColor));
|
||||
|
||||
fShaderProc32 = nullptr;
|
||||
fShaderProc16 = nullptr;
|
||||
fSampleProc32 = nullptr;
|
||||
|
||||
const bool trivialMatrix = (fInvMatrix.getType() & ~SkMatrix::kTranslate_Mask) == 0;
|
||||
|
@ -64,8 +64,6 @@ struct SkBitmapProcState : public SkBitmapProcInfo {
|
||||
|
||||
typedef void (*ShaderProc32)(const void* ctx, int x, int y, SkPMColor[], int count);
|
||||
|
||||
typedef void (*ShaderProc16)(const void* ctx, int x, int y, uint16_t[], int count);
|
||||
|
||||
typedef void (*MatrixProc)(const SkBitmapProcState&,
|
||||
uint32_t bitmapXY[],
|
||||
int count,
|
||||
@ -98,10 +96,8 @@ struct SkBitmapProcState : public SkBitmapProcInfo {
|
||||
following fields:
|
||||
|
||||
fShaderProc32
|
||||
fShaderProc16
|
||||
fMatrixProc
|
||||
fSampleProc32
|
||||
fSampleProc32
|
||||
|
||||
They will already have valid function pointers, so a platform that does
|
||||
not have an accelerated version can just leave that field as is. A valid
|
||||
@ -123,7 +119,6 @@ struct SkBitmapProcState : public SkBitmapProcInfo {
|
||||
// If a shader proc is present, then the corresponding matrix/sample procs
|
||||
// are ignored
|
||||
ShaderProc32 getShaderProc32() const { return fShaderProc32; }
|
||||
ShaderProc16 getShaderProc16() const { return fShaderProc16; }
|
||||
|
||||
#ifdef SK_DEBUG
|
||||
MatrixProc getMatrixProc() const;
|
||||
@ -134,7 +129,6 @@ struct SkBitmapProcState : public SkBitmapProcInfo {
|
||||
|
||||
private:
|
||||
ShaderProc32 fShaderProc32; // chooseProcs
|
||||
ShaderProc16 fShaderProc16; // chooseProcs
|
||||
// These are used if the shaderproc is nullptr
|
||||
MatrixProc fMatrixProc; // chooseProcs
|
||||
SampleProc32 fSampleProc32; // chooseProcs
|
||||
|
@ -13,10 +13,8 @@
|
||||
current state (e.g. fBitmap, fInvMatrix, etc.)
|
||||
|
||||
fShaderProc32
|
||||
fShaderProc16
|
||||
fMatrixProc
|
||||
fSampleProc32
|
||||
fSampleProc32
|
||||
*/
|
||||
|
||||
// empty implementation just uses default supplied function pointers
|
||||
|
Loading…
Reference in New Issue
Block a user