summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2012-03-09 09:24:39 -0800
committerAlex Sakhartchouk <alexst@google.com>2012-03-09 09:24:39 -0800
commite23d239828a229eb7d4d33c9630070f0a87833e1 (patch)
tree8887f2e5783d8fdc4404b7689ecc029369b98b8b
parent246fbee66ccb17cb1f08a5420e104a709183bce1 (diff)
downloadandroid_frameworks_rs-e23d239828a229eb7d4d33c9630070f0a87833e1.tar.gz
android_frameworks_rs-e23d239828a229eb7d4d33c9630070f0a87833e1.tar.bz2
android_frameworks_rs-e23d239828a229eb7d4d33c9630070f0a87833e1.zip
Starting to untangle header spaghetti.
Change-Id: I31f38d05dc8b55c659e8c7e9c0a87b94b9ac1db5
-rw-r--r--RenderScript.cpp1
-rw-r--r--RenderScript.h2
-rw-r--r--rsComponent.h1
-rw-r--r--rsContext.cpp1
-rw-r--r--rsElement.h1
-rw-r--r--rsFileA3D.cpp2
-rw-r--r--rsFileA3D.h1
-rw-r--r--rsFont.cpp2
-rw-r--r--rsFont.h1
-rw-r--r--rsMesh.cpp1
-rw-r--r--rsMesh.h2
-rw-r--r--rsObjectBase.h1
-rw-r--r--rsSampler.cpp2
-rw-r--r--rsSampler.h1
-rw-r--r--rsUtils.h2
15 files changed, 11 insertions, 10 deletions
diff --git a/RenderScript.cpp b/RenderScript.cpp
index 0b420555..217b9218 100644
--- a/RenderScript.cpp
+++ b/RenderScript.cpp
@@ -21,6 +21,7 @@
#include <string.h>
#include "RenderScript.h"
+#include "rs.h"
bool RenderScript::gInitialized = false;
pthread_mutex_t RenderScript::gInitMutex = PTHREAD_MUTEX_INITIALIZER;
diff --git a/RenderScript.h b/RenderScript.h
index 0eb6a6d6..5ad76e2c 100644
--- a/RenderScript.h
+++ b/RenderScript.h
@@ -22,7 +22,7 @@
#include <utils/String8.h>
#include <utils/Vector.h>
-#include "rs.h"
+#include "rsDefines.h"
class Element;
class Type;
diff --git a/rsComponent.h b/rsComponent.h
index 8629d0d9..a2e8c0f9 100644
--- a/rsComponent.h
+++ b/rsComponent.h
@@ -18,6 +18,7 @@
#define ANDROID_COMPONENT_H
#include "rsUtils.h"
+#include "rsDefines.h"
// ---------------------------------------------------------------------------
namespace android {
diff --git a/rsContext.cpp b/rsContext.cpp
index 0f3cea78..748b72a0 100644
--- a/rsContext.cpp
+++ b/rsContext.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+#include "rs.h"
#include "rsDevice.h"
#include "rsContext.h"
#include "rsThreadIO.h"
diff --git a/rsElement.h b/rsElement.h
index 4b6b4601..b86d3bc9 100644
--- a/rsElement.h
+++ b/rsElement.h
@@ -19,6 +19,7 @@
#include "rsComponent.h"
#include "rsUtils.h"
+#include "rsDefines.h"
#include "rsObjectBase.h"
// ---------------------------------------------------------------------------
diff --git a/rsFileA3D.cpp b/rsFileA3D.cpp
index ac658c8e..173b9a52 100644
--- a/rsFileA3D.cpp
+++ b/rsFileA3D.cpp
@@ -20,7 +20,7 @@
#include "rsMesh.h"
#include "rsAnimation.h"
-
+#include "rs.h"
using namespace android;
using namespace android::renderscript;
diff --git a/rsFileA3D.h b/rsFileA3D.h
index baf81de5..08062c63 100644
--- a/rsFileA3D.h
+++ b/rsFileA3D.h
@@ -17,7 +17,6 @@
#ifndef ANDROID_RS_FILE_A3D_H
#define ANDROID_RS_FILE_A3D_H
-#include "rs.h"
#include "rsMesh.h"
#include <androidfw/Asset.h>
diff --git a/rsFont.cpp b/rsFont.cpp
index c4276cfe..2bf9a750 100644
--- a/rsFont.cpp
+++ b/rsFont.cpp
@@ -16,7 +16,7 @@
*/
#include "rsContext.h"
-
+#include "rs.h"
#include "rsFont.h"
#include "rsProgramFragment.h"
#include <cutils/properties.h>
diff --git a/rsFont.h b/rsFont.h
index 88c47953..2bd30b78 100644
--- a/rsFont.h
+++ b/rsFont.h
@@ -17,7 +17,6 @@
#ifndef ANDROID_RS_FONT_H
#define ANDROID_RS_FONT_H
-#include "rs.h"
#include "rsStream.h"
#include <utils/String8.h>
#include <utils/Vector.h>
diff --git a/rsMesh.cpp b/rsMesh.cpp
index 67c72992..f9dbc33c 100644
--- a/rsMesh.cpp
+++ b/rsMesh.cpp
@@ -15,6 +15,7 @@
*/
#include "rsContext.h"
+#include "rs.h"
using namespace android;
using namespace android::renderscript;
diff --git a/rsMesh.h b/rsMesh.h
index 8eea4279..7ca63cf2 100644
--- a/rsMesh.h
+++ b/rsMesh.h
@@ -18,7 +18,7 @@
#define ANDROID_RS_MESH_H
-#include "rs.h"
+#include "rsObjectBase.h"
// ---------------------------------------------------------------------------
namespace android {
diff --git a/rsObjectBase.h b/rsObjectBase.h
index d9f5f3ba..586da191 100644
--- a/rsObjectBase.h
+++ b/rsObjectBase.h
@@ -18,6 +18,7 @@
#define ANDROID_RS_OBJECT_BASE_H
#include "rsUtils.h"
+#include "rsDefines.h"
#define RS_OBJECT_DEBUG 0
diff --git a/rsSampler.cpp b/rsSampler.cpp
index 5fc64a42..c7180bd9 100644
--- a/rsSampler.cpp
+++ b/rsSampler.cpp
@@ -16,7 +16,7 @@
#include "rsContext.h"
#include "rsSampler.h"
-
+#include "rs.h"
using namespace android;
using namespace android::renderscript;
diff --git a/rsSampler.h b/rsSampler.h
index 013e4ca3..dea4cb67 100644
--- a/rsSampler.h
+++ b/rsSampler.h
@@ -18,7 +18,6 @@
#define ANDROID_RS_SAMPLER_H
#include "rsAllocation.h"
-#include "rs.h"
// ---------------------------------------------------------------------------
namespace android {
diff --git a/rsUtils.h b/rsUtils.h
index a9a992a7..cbbae6c7 100644
--- a/rsUtils.h
+++ b/rsUtils.h
@@ -34,8 +34,6 @@
#include <math.h>
-#include "rs.h"
-
namespace android {
namespace renderscript {