summaryrefslogtreecommitdiffstats
path: root/scriptc/rs_graphics.rsh
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2011-09-28 15:23:18 -0700
committerAlex Sakhartchouk <alexst@google.com>2011-09-28 15:23:18 -0700
commit4325387cee36fe373b1a792fb2e65ef00535bbdd (patch)
tree46137a69e619aa10fee9cef4c9aca1e4cc54004c /scriptc/rs_graphics.rsh
parent5b9f3e2e5fe85e6defb424c6f96ddeab1581222c (diff)
downloadandroid_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.tar.gz
android_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.tar.bz2
android_frameworks_rs-4325387cee36fe373b1a792fb2e65ef00535bbdd.zip
Wrapping new API with #defines to prevent old apps from using them.
Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
Diffstat (limited to 'scriptc/rs_graphics.rsh')
-rw-r--r--scriptc/rs_graphics.rsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scriptc/rs_graphics.rsh b/scriptc/rs_graphics.rsh
index 00fd1b10..3e9339e0 100644
--- a/scriptc/rs_graphics.rsh
+++ b/scriptc/rs_graphics.rsh
@@ -23,6 +23,7 @@
#ifndef __RS_GRAPHICS_RSH__
#define __RS_GRAPHICS_RSH__
+#if (defined(RS_VERSION) && (RS_VERSION >= 14))
/**
* Set the color target used for all subsequent rendering calls
* @param colorTarget
@@ -64,6 +65,8 @@ extern void __attribute__((overloadable))
extern uint __attribute__((overloadable))
rsgFinish(void);
+#endif //defined(RS_VERSION) && (RS_VERSION >= 14)
+
/**
* Bind a new ProgramFragment to the rendering context.
*
@@ -187,6 +190,8 @@ extern uint __attribute__((overloadable))
extern void __attribute__((overloadable))
rsgAllocationSyncAll(rs_allocation alloc);
+#if (defined(RS_VERSION) && (RS_VERSION >= 14))
+
/**
* Sync the contents of an allocation from memory space
* specified by source.
@@ -198,6 +203,8 @@ extern void __attribute__((overloadable))
rsgAllocationSyncAll(rs_allocation alloc,
rs_allocation_usage_type source);
+#endif //defined(RS_VERSION) && (RS_VERSION >= 14)
+
/**
* Low performance utility function for drawing a simple rectangle. Not
* intended for drawing large quantities of geometry.