Searched defs:SpriteShader (Results 1 – 1 of 1) sorted by relevance
61 struct SpriteShader : public SkShaderBase { struct62 explicit SpriteShader(SkPixmap sprite) : fSprite(sprite) {} in SpriteShader() argument64 SkPixmap fSprite;67 Factory getFactory() const override { return nullptr; } in getFactory()68 const char* getTypeName() const override { return "SpriteShader"; } in getTypeName()70 bool isOpaque() const override { return fSprite.isOpaque(); } in isOpaque()72 skvm::Color onProgram(skvm::Builder* p, in onProgram()