diff options
author | Stephen Hines <srhines@google.com> | 2012-05-07 15:34:29 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2012-05-07 15:34:29 -0700 |
commit | 9c9ad3f8c218954e46aab81f9af7834cea5675ca (patch) | |
tree | 1ae4ba36dda77457b82b8e2705ecdcc2dc370327 /graphics/java/android/renderscript/Program.java | |
parent | b3482ffbeee30650359e6ab8f3950a83e06963b4 (diff) |
Revert "Deprecate"
This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908.
Conflicts:
api/current.txt
graphics/java/android/renderscript/Element.java
graphics/java/android/renderscript/Script.java
Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
Diffstat (limited to 'graphics/java/android/renderscript/Program.java')
-rw-r--r-- | graphics/java/android/renderscript/Program.java | 43 |
1 files changed, 18 insertions, 25 deletions
diff --git a/graphics/java/android/renderscript/Program.java b/graphics/java/android/renderscript/Program.java index 16186faaf3b0..d9f64c62a40f 100644 --- a/graphics/java/android/renderscript/Program.java +++ b/graphics/java/android/renderscript/Program.java @@ -25,7 +25,7 @@ import android.content.res.Resources; import android.util.Log; -/** @deprecated renderscript is deprecated in J +/** * * Program is a base class for all the objects that modify * various stages of the graphics pipeline @@ -37,18 +37,14 @@ public class Program extends BaseObj { static final int MAX_CONSTANT = 8; static final int MAX_TEXTURE = 8; - /** @deprecated renderscript is deprecated in J + /** * * TextureType specifies what textures are attached to Program * objects * **/ public enum TextureType { - /** @deprecated renderscript is deprecated in J - */ TEXTURE_2D (0), - /** @deprecated renderscript is deprecated in J - */ TEXTURE_CUBE (1); int mID; @@ -81,7 +77,7 @@ public class Program extends BaseObj { super(id, rs); } - /** @hide renderscript is deprecated in J + /** * Program object can have zero or more constant allocations * associated with it. This method returns the total count. * @return number of constant input types @@ -90,7 +86,7 @@ public class Program extends BaseObj { return mConstants != null ? mConstants.length : 0; } - /** @hide renderscript is deprecated in J + /** * Returns the type of the constant buffer used in the program * object. It could be used to query internal elements or create * an allocation to store constant data. @@ -104,7 +100,7 @@ public class Program extends BaseObj { return mConstants[slot]; } - /** @hide renderscript is deprecated in J + /** * Returns the number of textures used in this program object * @return number of texture inputs */ @@ -112,7 +108,7 @@ public class Program extends BaseObj { return mTextureCount; } - /** @hide renderscript is deprecated in J + /** * Returns the type of texture at a given slot. e.g. 2D or Cube * @param slot index of the texture input * @return texture input type @@ -124,7 +120,7 @@ public class Program extends BaseObj { return mTextures[slot]; } - /** @hide renderscript is deprecated in J + /** * Returns the name of the texture input at a given slot. e.g. * tex0, diffuse, spec * @param slot index of the texture input @@ -137,7 +133,7 @@ public class Program extends BaseObj { return mTextureNames[slot]; } - /** @deprecated renderscript is deprecated in J + /** * Binds a constant buffer to be used as uniform inputs to the * program * @@ -157,7 +153,7 @@ public class Program extends BaseObj { mRS.nProgramBindConstants(getID(mRS), slot, id); } - /** @deprecated renderscript is deprecated in J + /** * Binds a texture to be used in the program * * @param va allocation containing texture data @@ -179,7 +175,7 @@ public class Program extends BaseObj { mRS.nProgramBindTexture(getID(mRS), slot, id); } - /** @deprecated renderscript is deprecated in J + /** * Binds an object that describes how a texture at the * corresponding location is sampled * @@ -214,8 +210,7 @@ public class Program extends BaseObj { int mTextureCount; String mShader; - /** @deprecated renderscript is deprecated in J - */ + protected BaseProgramBuilder(RenderScript rs) { mRS = rs; mInputs = new Element[MAX_INPUT]; @@ -229,7 +224,7 @@ public class Program extends BaseObj { mTextureNames = new String[MAX_TEXTURE]; } - /** @deprecated renderscript is deprecated in J + /** * Sets the GLSL shader code to be used in the program * * @param s GLSL shader string @@ -240,7 +235,7 @@ public class Program extends BaseObj { return this; } - /** @deprecated renderscript is deprecated in J + /** * Sets the GLSL shader code to be used in the program * * @param resources application resources @@ -286,7 +281,7 @@ public class Program extends BaseObj { return this; } - /** @deprecated renderscript is deprecated in J + /** * Queries the index of the last added constant buffer type * */ @@ -294,7 +289,7 @@ public class Program extends BaseObj { return mConstantCount - 1; } - /** @deprecated renderscript is deprecated in J + /** * Queries the index of the last added texture type * */ @@ -302,7 +297,7 @@ public class Program extends BaseObj { return mTextureCount - 1; } - /** @deprecated renderscript is deprecated in J + /** * Adds constant (uniform) inputs to the program * * @param t Type that describes the layout of the Allocation @@ -322,7 +317,7 @@ public class Program extends BaseObj { return this; } - /** @deprecated renderscript is deprecated in J + /** * Adds a texture input to the Program * * @param texType describes that the texture to append it (2D, @@ -334,7 +329,7 @@ public class Program extends BaseObj { return this; } - /** @hide renderscript is deprecated in J + /** * Adds a texture input to the Program * * @param texType describes that the texture to append it (2D, @@ -354,8 +349,6 @@ public class Program extends BaseObj { return this; } - /** @deprecated renderscript is deprecated in J - */ protected void initProgram(Program p) { p.mInputs = new Element[mInputCount]; System.arraycopy(mInputs, 0, p.mInputs, 0, mInputCount); |