diff options
| author | Jason Sams <rjsams@android.com> | 2010-05-14 16:02:16 -0700 |
|---|---|---|
| committer | Jason Sams <rjsams@android.com> | 2010-05-14 16:02:16 -0700 |
| commit | c78002e81665739a29b2cb78b9e0db29e772da2d (patch) | |
| tree | b7952590b23e47ff83a36874c72139fbb05a48e5 /src/com/android/wallpaper | |
| parent | b01082c6dc1ad3823f2d6c912a047ed50f165713 (diff) | |
| download | android_packages_wallpapers_Basic-c78002e81665739a29b2cb78b9e0db29e772da2d.tar.gz android_packages_wallpapers_Basic-c78002e81665739a29b2cb78b9e0db29e772da2d.tar.bz2 android_packages_wallpapers_Basic-c78002e81665739a29b2cb78b9e0db29e772da2d.zip | |
Remove old calls to setName that are no longer necessary.
Change-Id: I1e0acc758eca3b788d5f9e0483e0e17544951aa6
Diffstat (limited to 'src/com/android/wallpaper')
| -rw-r--r-- | src/com/android/wallpaper/fall/FallRS.java | 17 | ||||
| -rw-r--r-- | src/com/android/wallpaper/grass/GrassRS.java | 2 |
2 files changed, 4 insertions, 15 deletions
diff --git a/src/com/android/wallpaper/fall/FallRS.java b/src/com/android/wallpaper/fall/FallRS.java index 1e6ae86..7d9e2c2 100644 --- a/src/com/android/wallpaper/fall/FallRS.java +++ b/src/com/android/wallpaper/fall/FallRS.java @@ -197,7 +197,6 @@ class FallRS extends RenderScriptScene { } mMesh = tmb.create(); - mMesh.setName("WaterMesh"); mMeshWidth = wResolution + 1; mMeshHeight = hResolution + 1; @@ -247,22 +246,20 @@ class FallRS extends RenderScriptScene { } private void loadTextures() { - mScript.set_g_TLeaves(loadTextureARGB(R.drawable.leaves, "TLeaves")); - mScript.set_g_TRiverbed(loadTexture(R.drawable.pond, "TRiverbed")); + mScript.set_g_TLeaves(loadTextureARGB(R.drawable.leaves)); + mScript.set_g_TRiverbed(loadTexture(R.drawable.pond)); } - private Allocation loadTexture(int id, String name) { + private Allocation loadTexture(int id) { final Allocation allocation = Allocation.createFromBitmapResource(mRS, mResources, id, RGB_565(mRS), false); - allocation.setName(name); allocation.uploadToTexture(0); return allocation; } - private Allocation loadTextureARGB(int id, String name) { + private Allocation loadTextureARGB(int id) { Bitmap b = BitmapFactory.decodeResource(mResources, id, mOptionsARGB); final Allocation allocation = Allocation.createFromBitmap(mRS, b, RGBA_8888(mRS), false); - allocation.setName(name); allocation.uploadToTexture(0); return allocation; } @@ -279,7 +276,6 @@ class FallRS extends RenderScriptScene { builder.setTexture(ProgramFragment.Builder.EnvMode.REPLACE, ProgramFragment.Builder.Format.RGBA, 0); mPfBackground = builder.create(); - mPfBackground.setName("PFBackground"); mPfBackground.bindSampler(mSampler, 0); mScript.set_g_PFBackground(mPfBackground); @@ -288,7 +284,6 @@ class FallRS extends RenderScriptScene { builder.setTexture(ProgramFragment.Builder.EnvMode.MODULATE, ProgramFragment.Builder.Format.RGBA, 0); mPfSky = builder.create(); - mPfSky.setName("PFSky"); mPfSky.bindSampler(mSampler, 0); mScript.set_g_PFSky(mPfSky); @@ -301,7 +296,6 @@ class FallRS extends RenderScriptScene { builder.setDitherEnable(false); builder.setDepthMask(true); mPfsBackground = builder.create(); - mPfsBackground.setName("PFSBackground"); builder = new ProgramStore.Builder(mRS, null, null); builder.setDepthFunc(ALWAYS); @@ -309,7 +303,6 @@ class FallRS extends RenderScriptScene { builder.setDitherEnable(false); builder.setDepthMask(true); mPfsLeaf = builder.create(); - mPfsLeaf.setName("PFSLeaf"); mScript.set_g_PFSLeaf(mPfsLeaf); mScript.set_g_PFSBackground(mPfsBackground); @@ -322,7 +315,6 @@ class FallRS extends RenderScriptScene { ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS, null, null); mPvSky = builder.create(); mPvSky.bindAllocation(mPvOrthoAlloc); - mPvSky.setName("PVSky"); mScript.set_g_PVSky(mPvSky); @@ -383,7 +375,6 @@ class FallRS extends RenderScriptScene { sb.addInput(mMesh.getVertexType(0).getElement()); mPvWater = sb.create(); mPvWater.bindAllocation(mPvOrthoAlloc); - mPvWater.setName("PVWater"); mPvWater.bindConstants(mUniformAlloc, 1); mScript.set_g_PVWater(mPvWater); diff --git a/src/com/android/wallpaper/grass/GrassRS.java b/src/com/android/wallpaper/grass/GrassRS.java index d2f3487..0dbfd3b 100644 --- a/src/com/android/wallpaper/grass/GrassRS.java +++ b/src/com/android/wallpaper/grass/GrassRS.java @@ -209,10 +209,8 @@ class GrassRS extends RenderScriptScene { meshBuilder.setIndexType(Element.INDEX_16(mRS), mIndicies); meshBuilder.setPrimitive(Primitive.TRIANGLE); mBladesMesh = meshBuilder.create(); - //mBladesMesh.setName("BladesMesh"); //mBladesBuffer = mBladesMesh.createVertexAllocation(vertexSlot); - //mBladesBuffer.setName("BladesBuffer"); mBladesMesh.bindVertexAllocation(mVertexBuffer.getAllocation(), 0); mBladesIndicies = mBladesMesh.createIndexAllocation(); mBladesMesh.bindIndexAllocation(mBladesIndicies); |
