Migrate most GL from context to driver.
Change-Id: I5cba3a6e879d2e9332fc667a1061a5312fcf14ba
diff --git a/libs/rs/rs_hal.h b/libs/rs/rs_hal.h
index 93d7476..a4ca936 100644
--- a/libs/rs/rs_hal.h
+++ b/libs/rs/rs_hal.h
@@ -18,6 +18,7 @@
#define RS_HAL_H
#include <RenderScriptDefines.h>
+#include <ui/egl/android_natives.h>
namespace android {
namespace renderscript {
@@ -44,6 +45,11 @@
* Script management functions
*/
typedef struct {
+ bool (*initGraphics)(const Context *);
+ void (*shutdownGraphics)(const Context *);
+ bool (*setSurface)(const Context *, uint32_t w, uint32_t h, ANativeWindow *);
+ void (*swap)(const Context *);
+
void (*shutdownDriver)(Context *);
void (*getVersion)(unsigned int *major, unsigned int *minor);
void (*setPriority)(const Context *, int32_t priority);
@@ -87,7 +93,6 @@
void (*destroy)(const Context *rsc, Script *s);
} script;
-
struct {
bool (*init)(const Context *rsc, const ProgramStore *ps);
void (*setActive)(const Context *rsc, const ProgramStore *ps);