summaryrefslogtreecommitdiffstats
path: root/libs/rs
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2011-02-07 14:20:07 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-02-07 14:20:07 -0800
commit4110c9931abbc84e515b42b979d318d5e1561fc2 (patch)
treee2d435f02a6b1111004e6ba40ec42d7fb67997a2 /libs/rs
parent96203e2dbe1a5bea4825a54faa3de6192bf24219 (diff)
parent5510d1722b8da4fd630a236f0fd3aad0cc4dac0c (diff)
downloadframeworks_base-4110c9931abbc84e515b42b979d318d5e1561fc2.zip
frameworks_base-4110c9931abbc84e515b42b979d318d5e1561fc2.tar.gz
frameworks_base-4110c9931abbc84e515b42b979d318d5e1561fc2.tar.bz2
am 5510d172: am f8cbf729: Merge "cleanup headers for SDK. bug 3421901" into honeycomb
* commit '5510d1722b8da4fd630a236f0fd3aad0cc4dac0c': cleanup headers for SDK. bug 3421901
Diffstat (limited to 'libs/rs')
-rw-r--r--libs/rs/java/Samples/src/com/android/samples/rsbench.rs8
-rw-r--r--libs/rs/java/Samples/src/com/android/samples/rsrenderstates.rs2
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/rs/java/Samples/src/com/android/samples/rsbench.rs b/libs/rs/java/Samples/src/com/android/samples/rsbench.rs
index 905f34b..a1368e6 100644
--- a/libs/rs/java/Samples/src/com/android/samples/rsbench.rs
+++ b/libs/rs/java/Samples/src/com/android/samples/rsbench.rs
@@ -297,7 +297,7 @@ static void updateModelMatrix(rs_matrix4x4 *matrix, void *buffer) {
if (buffer == 0) {
rsgProgramVertexLoadModelMatrix(matrix);
} else {
- rsAllocationMarkDirty(rsGetAllocation(buffer));
+ rsgAllocationSyncAll(rsGetAllocation(buffer));
}
}
@@ -409,7 +409,7 @@ static void setupCustomShaderLights() {
gVSConstants->light1_Diffuse = 1.0f;
gVSConstants->light1_Specular = 0.7f;
gVSConstants->light1_CosinePower = 25.0f;
- rsAllocationMarkDirty(rsGetAllocation(gVSConstants));
+ rsgAllocationSyncAll(rsGetAllocation(gVSConstants));
// Update fragment shader constants
// Set light 0 colors
@@ -418,7 +418,7 @@ static void setupCustomShaderLights() {
// Set light 1 colors
gFSConstants->light1_DiffuseColor = light1DiffCol;
gFSConstants->light1_SpecularColor = light1SpecCol;
- rsAllocationMarkDirty(rsGetAllocation(gFSConstants));
+ rsgAllocationSyncAll(rsGetAllocation(gFSConstants));
// Set light 0 properties for per pixel lighting
gFSConstPixel->light0_Posision = light0Pos;
@@ -434,7 +434,7 @@ static void setupCustomShaderLights() {
gFSConstPixel->light1_CosinePower = 25.0f;
gFSConstPixel->light1_DiffuseColor = light1DiffCol;
gFSConstPixel->light1_SpecularColor = light1SpecCol;
- rsAllocationMarkDirty(rsGetAllocation(gFSConstPixel));
+ rsgAllocationSyncAll(rsGetAllocation(gFSConstPixel));
}
static void displayCustomShaderSamples(int numMeshes) {
diff --git a/libs/rs/java/Samples/src/com/android/samples/rsrenderstates.rs b/libs/rs/java/Samples/src/com/android/samples/rsrenderstates.rs
index 42be4d8..9019533 100644
--- a/libs/rs/java/Samples/src/com/android/samples/rsrenderstates.rs
+++ b/libs/rs/java/Samples/src/com/android/samples/rsrenderstates.rs
@@ -526,7 +526,7 @@ static void displayCubemapShaderSample() {
// Setup the projectioni matrix
float aspect = (float)rsgGetWidth() / (float)rsgGetHeight();
rsMatrixLoadPerspective(&gVSConstants->proj, 30.0f, aspect, 0.1f, 100.0f);
- rsAllocationMarkDirty(rsGetAllocation(gFSConstants));
+ rsgAllocationSyncAll(rsGetAllocation(gFSConstants));
rsgBindProgramVertex(gProgVertexCube);