summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Program.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/Program.h')
-rw-r--r--libs/hwui/Program.h28
1 files changed, 25 insertions, 3 deletions
diff --git a/libs/hwui/Program.h b/libs/hwui/Program.h
index 652befe1..d90bcaf 100644
--- a/libs/hwui/Program.h
+++ b/libs/hwui/Program.h
@@ -39,18 +39,18 @@ public:
* shaders sources.
*/
Program(const char* vertex, const char* fragment);
- ~Program();
+ virtual ~Program();
/**
* Binds this program to the GL context.
*/
- void use();
+ virtual void use();
/**
* Marks this program as unused. This will not unbind
* the program from the GL context.
*/
- void remove();
+ virtual void remove();
/**
* Indicates whether this program is currently in use with
@@ -129,6 +129,17 @@ public:
const mat4& transformMatrix);
/**
+ * Binds this program to the GL context.
+ */
+ virtual void use();
+
+ /**
+ * Marks this program as unused. This will not unbind
+ * the program from the GL context.
+ */
+ virtual void remove();
+
+ /**
* Name of the position attribute.
*/
int position;
@@ -157,6 +168,17 @@ public:
DrawTextureProgram();
/**
+ * Binds this program to the GL context.
+ */
+ virtual void use();
+
+ /**
+ * Marks this program as unused. This will not unbind
+ * the program from the GL context.
+ */
+ virtual void remove();
+
+ /**
* Name of the texture sampler uniform.
*/
int sampler;