Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Unified Diff: src/gpu/effects/GrSimpleTextureEffect.h

Issue 778453002: Remove backend factories (Closed) Base URL: https://skia.googlesource.com/skia.git@unichoice
Patch Set: cleanup Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/effects/GrSimpleTextureEffect.h
diff --git a/src/gpu/effects/GrSimpleTextureEffect.h b/src/gpu/effects/GrSimpleTextureEffect.h
index f2c8d16a869d8159c9f12ef5d63bd1305236710d..9f63fb9493e7e5140287c122b4990842a9bfb1b0 100644
--- a/src/gpu/effects/GrSimpleTextureEffect.h
+++ b/src/gpu/effects/GrSimpleTextureEffect.h
@@ -10,7 +10,6 @@
#include "GrSingleTextureEffect.h"
-class GrGLSimpleTextureEffect;
class GrInvariantOutput;
/**
@@ -48,11 +47,16 @@ public:
virtual ~GrSimpleTextureEffect() {}
- static const char* Name() { return "Texture"; }
+ virtual const char* name() const SK_OVERRIDE { return "SimpleTexture"; }
- typedef GrGLSimpleTextureEffect GLProcessor;
+ virtual void getGLProcessorKey(const GrGLCaps&, GrProcessorKeyBuilder*) const SK_OVERRIDE;
- virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERRIDE;
+ virtual GrGLFragmentProcessor* createGLInstance() const SK_OVERRIDE;
+
+ virtual uint32_t classID() const {
+ static uint32_t id = GenClassID();
+ return id;
+ }
private:
GrSimpleTextureEffect(GrTexture* texture,

Powered by Google App Engine
This is Rietveld 408576698