Loading api/current.txt +33 −33 Original line number Original line Diff line number Diff line Loading @@ -19109,14 +19109,14 @@ package android.renderscript { method public int getVertexAllocationCount(); method public int getVertexAllocationCount(); } } public static class Mesh.AllocationBuilder { public static deprecated class Mesh.AllocationBuilder { ctor public Mesh.AllocationBuilder(android.renderscript.RenderScript); ctor public deprecated Mesh.AllocationBuilder(android.renderscript.RenderScript); method public android.renderscript.Mesh.AllocationBuilder addIndexSetAllocation(android.renderscript.Allocation, android.renderscript.Mesh.Primitive); method public deprecated android.renderscript.Mesh.AllocationBuilder addIndexSetAllocation(android.renderscript.Allocation, android.renderscript.Mesh.Primitive); method public android.renderscript.Mesh.AllocationBuilder addIndexSetType(android.renderscript.Mesh.Primitive); method public deprecated android.renderscript.Mesh.AllocationBuilder addIndexSetType(android.renderscript.Mesh.Primitive); method public android.renderscript.Mesh.AllocationBuilder addVertexAllocation(android.renderscript.Allocation) throws java.lang.IllegalStateException; method public deprecated android.renderscript.Mesh.AllocationBuilder addVertexAllocation(android.renderscript.Allocation) throws java.lang.IllegalStateException; method public android.renderscript.Mesh create(); method public deprecated android.renderscript.Mesh create(); method public int getCurrentIndexSetIndex(); method public deprecated int getCurrentIndexSetIndex(); method public int getCurrentVertexTypeIndex(); method public deprecated int getCurrentVertexTypeIndex(); } } public static class Mesh.Builder { public static class Mesh.Builder { Loading @@ -19142,18 +19142,18 @@ package android.renderscript { enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_STRIP; enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_STRIP; } } public static class Mesh.TriangleMeshBuilder { public static deprecated class Mesh.TriangleMeshBuilder { ctor public Mesh.TriangleMeshBuilder(android.renderscript.RenderScript, int, int); ctor public deprecated Mesh.TriangleMeshBuilder(android.renderscript.RenderScript, int, int); method public android.renderscript.Mesh.TriangleMeshBuilder addTriangle(int, int, int); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addTriangle(int, int, int); method public android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float); method public android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float, float); method public android.renderscript.Mesh create(boolean); method public deprecated android.renderscript.Mesh create(boolean); method public android.renderscript.Mesh.TriangleMeshBuilder setColor(float, float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setColor(float, float, float, float); method public android.renderscript.Mesh.TriangleMeshBuilder setNormal(float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setNormal(float, float, float); method public android.renderscript.Mesh.TriangleMeshBuilder setTexture(float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setTexture(float, float); field public static final int COLOR = 1; // 0x1 field public static final deprecated int COLOR = 1; // 0x1 field public static final int NORMAL = 2; // 0x2 field public static final deprecated int NORMAL = 2; // 0x2 field public static final int TEXTURE_0 = 256; // 0x100 field public static final deprecated int TEXTURE_0 = 256; // 0x100 } } public class Program extends android.renderscript.BaseObj { public class Program extends android.renderscript.BaseObj { Loading Loading @@ -19356,18 +19356,18 @@ package android.renderscript { ctor public RSRuntimeException(java.lang.String); ctor public RSRuntimeException(java.lang.String); } } public class RSSurfaceView extends android.view.SurfaceView implements android.view.SurfaceHolder.Callback { public deprecated class RSSurfaceView extends android.view.SurfaceView implements android.view.SurfaceHolder.Callback { ctor public RSSurfaceView(android.content.Context); ctor public deprecated RSSurfaceView(android.content.Context); ctor public RSSurfaceView(android.content.Context, android.util.AttributeSet); ctor public deprecated RSSurfaceView(android.content.Context, android.util.AttributeSet); method public android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig); method public deprecated android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig); method public void destroyRenderScriptGL(); method public deprecated void destroyRenderScriptGL(); method public android.renderscript.RenderScriptGL getRenderScriptGL(); method public deprecated android.renderscript.RenderScriptGL getRenderScriptGL(); method public void pause(); method public deprecated void pause(); method public void resume(); method public deprecated void resume(); method public void setRenderScriptGL(android.renderscript.RenderScriptGL); method public deprecated void setRenderScriptGL(android.renderscript.RenderScriptGL); method public void surfaceChanged(android.view.SurfaceHolder, int, int, int); method public deprecated void surfaceChanged(android.view.SurfaceHolder, int, int, int); method public void surfaceCreated(android.view.SurfaceHolder); method public deprecated void surfaceCreated(android.view.SurfaceHolder); method public void surfaceDestroyed(android.view.SurfaceHolder); method public deprecated void surfaceDestroyed(android.view.SurfaceHolder); } } public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener { public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener { Loading Loading @@ -19432,7 +19432,7 @@ package android.renderscript { method public void pause(); method public void pause(); method public void resume(); method public void resume(); method public void setSurface(android.view.SurfaceHolder, int, int); method public void setSurface(android.view.SurfaceHolder, int, int); method public void setSurfaceTexture(android.graphics.SurfaceTexture, int, int); method public deprecated void setSurfaceTexture(android.graphics.SurfaceTexture, int, int); } } public static class RenderScriptGL.SurfaceConfig { public static class RenderScriptGL.SurfaceConfig { graphics/java/android/renderscript/Mesh.java +29 −1 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2008-2012 The Android Open Source Project * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -373,6 +373,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Mesh builder object. It starts empty and requires the user to * Mesh builder object. It starts empty and requires the user to * add all the vertex and index allocations that comprise the * add all the vertex and index allocations that comprise the * mesh * mesh Loading @@ -391,6 +392,9 @@ public class Mesh extends BaseObj { Vector mIndexTypes; Vector mIndexTypes; /** * @deprecated in API 16 **/ public AllocationBuilder(RenderScript rs) { public AllocationBuilder(RenderScript rs) { mRS = rs; mRS = rs; mVertexTypeCount = 0; mVertexTypeCount = 0; Loading @@ -399,6 +403,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * @return internal index of the last vertex buffer type added to * @return internal index of the last vertex buffer type added to * builder * builder **/ **/ Loading @@ -407,6 +412,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * @return internal index of the last index set added to the * @return internal index of the last index set added to the * builder * builder **/ **/ Loading @@ -415,6 +421,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an allocation containing vertex buffer data to the * Adds an allocation containing vertex buffer data to the * builder * builder * * Loading @@ -434,6 +441,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an allocation containing index buffer data and index type * Adds an allocation containing index buffer data and index type * to the builder * to the builder * * Loading @@ -451,6 +459,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an index set type to the builder * Adds an index set type to the builder * * * @param p index set primitive type * @param p index set primitive type Loading @@ -466,6 +475,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Create a Mesh object from the current state of the builder * Create a Mesh object from the current state of the builder * * **/ **/ Loading Loading @@ -507,6 +517,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Builder that allows creation of a mesh object point by point * Builder that allows creation of a mesh object point by point * and triangle by triangle * and triangle by triangle * * Loading @@ -533,11 +544,21 @@ public class Mesh extends BaseObj { int mVtxSize; int mVtxSize; int mFlags; int mFlags; /** * @deprecated in API 16 **/ public static final int COLOR = 0x0001; public static final int COLOR = 0x0001; /** * @deprecated in API 16 **/ public static final int NORMAL = 0x0002; public static final int NORMAL = 0x0002; /** * @deprecated in API 16 **/ public static final int TEXTURE_0 = 0x0100; public static final int TEXTURE_0 = 0x0100; /** /** * @deprecated in API 16 * @param rs Context to which the mesh will belong. * @param rs Context to which the mesh will belong. * @param vtxSize specifies whether the vertex is a float2 or * @param vtxSize specifies whether the vertex is a float2 or * float3 * float3 Loading Loading @@ -593,6 +614,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a float2 vertex to the mesh * Adds a float2 vertex to the mesh * * * @param x position x * @param x position x Loading @@ -613,6 +635,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a float3 vertex to the mesh * Adds a float3 vertex to the mesh * * * @param x position x * @param x position x Loading @@ -636,6 +659,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the texture coordinate for the vertices that are added after this method call. * Sets the texture coordinate for the vertices that are added after this method call. * * * @param s texture coordinate s * @param s texture coordinate s Loading @@ -653,6 +677,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the normal vector for the vertices that are added after this method call. * Sets the normal vector for the vertices that are added after this method call. * * * @param x normal vector x * @param x normal vector x Loading @@ -672,6 +697,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the color for the vertices that are added after this method call. * Sets the color for the vertices that are added after this method call. * * * @param r red component * @param r red component Loading @@ -693,6 +719,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a new triangle to the mesh builder * Adds a new triangle to the mesh builder * * * @param idx1 index of the first vertex in the triangle * @param idx1 index of the first vertex in the triangle Loading @@ -719,6 +746,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Creates the mesh object from the current state of the builder * Creates the mesh object from the current state of the builder * * * @param uploadToBufferObject specifies whether the vertex data * @param uploadToBufferObject specifies whether the vertex data Loading graphics/java/android/renderscript/RSSurfaceView.java +21 −1 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2008-2012 The Android Open Source Project * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -30,6 +30,7 @@ import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.SurfaceView; /** /** * @deprecated in API 16 * The Surface View for a graphics renderscript (RenderScriptGL) to draw on. * The Surface View for a graphics renderscript (RenderScriptGL) to draw on. * * * <div class="special reference"> * <div class="special reference"> Loading @@ -43,6 +44,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback private RenderScriptGL mRS; private RenderScriptGL mRS; /** /** * @deprecated in API 16 * Standard View constructor. In order to render something, you * Standard View constructor. In order to render something, you * must call {@link android.opengl.GLSurfaceView#setRenderer} to * must call {@link android.opengl.GLSurfaceView#setRenderer} to * register a renderer. * register a renderer. Loading @@ -54,6 +56,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Standard View constructor. In order to render something, you * Standard View constructor. In order to render something, you * must call {@link android.opengl.GLSurfaceView#setRenderer} to * must call {@link android.opengl.GLSurfaceView#setRenderer} to * register a renderer. * register a renderer. Loading @@ -72,6 +75,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -80,6 +84,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -93,6 +98,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -105,6 +111,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Inform the view that the activity is paused. The owner of this view must * Inform the view that the activity is paused. The owner of this view must * call this method when the activity is paused. Calling this method will * call this method when the activity is paused. Calling this method will * pause the rendering thread. * pause the rendering thread. Loading @@ -117,6 +124,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Inform the view that the activity is resumed. The owner of this view must * Inform the view that the activity is resumed. The owner of this view must * call this method when the activity is resumed. Calling this method will * call this method when the activity is resumed. Calling this method will * recreate the OpenGL display and resume the rendering * recreate the OpenGL display and resume the rendering Loading @@ -129,12 +137,18 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } } } /** * @deprecated in API 16 **/ public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); setRenderScriptGL(rs); setRenderScriptGL(rs); return rs; return rs; } } /** * @deprecated in API 16 **/ public void destroyRenderScriptGL() { public void destroyRenderScriptGL() { synchronized (this) { synchronized (this) { mRS.destroy(); mRS.destroy(); Loading @@ -142,10 +156,16 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } } } /** * @deprecated in API 16 **/ public void setRenderScriptGL(RenderScriptGL rs) { public void setRenderScriptGL(RenderScriptGL rs) { mRS = rs; mRS = rs; } } /** * @deprecated in API 16 **/ public RenderScriptGL getRenderScriptGL() { public RenderScriptGL getRenderScriptGL() { return mRS; return mRS; } } Loading graphics/java/android/renderscript/RenderScriptGL.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -206,6 +206,7 @@ public class RenderScriptGL extends RenderScript { } } /** /** * @deprecated in API 16 * Bind an os surface * Bind an os surface * * * @param w * @param w Loading Loading
api/current.txt +33 −33 Original line number Original line Diff line number Diff line Loading @@ -19109,14 +19109,14 @@ package android.renderscript { method public int getVertexAllocationCount(); method public int getVertexAllocationCount(); } } public static class Mesh.AllocationBuilder { public static deprecated class Mesh.AllocationBuilder { ctor public Mesh.AllocationBuilder(android.renderscript.RenderScript); ctor public deprecated Mesh.AllocationBuilder(android.renderscript.RenderScript); method public android.renderscript.Mesh.AllocationBuilder addIndexSetAllocation(android.renderscript.Allocation, android.renderscript.Mesh.Primitive); method public deprecated android.renderscript.Mesh.AllocationBuilder addIndexSetAllocation(android.renderscript.Allocation, android.renderscript.Mesh.Primitive); method public android.renderscript.Mesh.AllocationBuilder addIndexSetType(android.renderscript.Mesh.Primitive); method public deprecated android.renderscript.Mesh.AllocationBuilder addIndexSetType(android.renderscript.Mesh.Primitive); method public android.renderscript.Mesh.AllocationBuilder addVertexAllocation(android.renderscript.Allocation) throws java.lang.IllegalStateException; method public deprecated android.renderscript.Mesh.AllocationBuilder addVertexAllocation(android.renderscript.Allocation) throws java.lang.IllegalStateException; method public android.renderscript.Mesh create(); method public deprecated android.renderscript.Mesh create(); method public int getCurrentIndexSetIndex(); method public deprecated int getCurrentIndexSetIndex(); method public int getCurrentVertexTypeIndex(); method public deprecated int getCurrentVertexTypeIndex(); } } public static class Mesh.Builder { public static class Mesh.Builder { Loading @@ -19142,18 +19142,18 @@ package android.renderscript { enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_STRIP; enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_STRIP; } } public static class Mesh.TriangleMeshBuilder { public static deprecated class Mesh.TriangleMeshBuilder { ctor public Mesh.TriangleMeshBuilder(android.renderscript.RenderScript, int, int); ctor public deprecated Mesh.TriangleMeshBuilder(android.renderscript.RenderScript, int, int); method public android.renderscript.Mesh.TriangleMeshBuilder addTriangle(int, int, int); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addTriangle(int, int, int); method public android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float); method public android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder addVertex(float, float, float); method public android.renderscript.Mesh create(boolean); method public deprecated android.renderscript.Mesh create(boolean); method public android.renderscript.Mesh.TriangleMeshBuilder setColor(float, float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setColor(float, float, float, float); method public android.renderscript.Mesh.TriangleMeshBuilder setNormal(float, float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setNormal(float, float, float); method public android.renderscript.Mesh.TriangleMeshBuilder setTexture(float, float); method public deprecated android.renderscript.Mesh.TriangleMeshBuilder setTexture(float, float); field public static final int COLOR = 1; // 0x1 field public static final deprecated int COLOR = 1; // 0x1 field public static final int NORMAL = 2; // 0x2 field public static final deprecated int NORMAL = 2; // 0x2 field public static final int TEXTURE_0 = 256; // 0x100 field public static final deprecated int TEXTURE_0 = 256; // 0x100 } } public class Program extends android.renderscript.BaseObj { public class Program extends android.renderscript.BaseObj { Loading Loading @@ -19356,18 +19356,18 @@ package android.renderscript { ctor public RSRuntimeException(java.lang.String); ctor public RSRuntimeException(java.lang.String); } } public class RSSurfaceView extends android.view.SurfaceView implements android.view.SurfaceHolder.Callback { public deprecated class RSSurfaceView extends android.view.SurfaceView implements android.view.SurfaceHolder.Callback { ctor public RSSurfaceView(android.content.Context); ctor public deprecated RSSurfaceView(android.content.Context); ctor public RSSurfaceView(android.content.Context, android.util.AttributeSet); ctor public deprecated RSSurfaceView(android.content.Context, android.util.AttributeSet); method public android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig); method public deprecated android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig); method public void destroyRenderScriptGL(); method public deprecated void destroyRenderScriptGL(); method public android.renderscript.RenderScriptGL getRenderScriptGL(); method public deprecated android.renderscript.RenderScriptGL getRenderScriptGL(); method public void pause(); method public deprecated void pause(); method public void resume(); method public deprecated void resume(); method public void setRenderScriptGL(android.renderscript.RenderScriptGL); method public deprecated void setRenderScriptGL(android.renderscript.RenderScriptGL); method public void surfaceChanged(android.view.SurfaceHolder, int, int, int); method public deprecated void surfaceChanged(android.view.SurfaceHolder, int, int, int); method public void surfaceCreated(android.view.SurfaceHolder); method public deprecated void surfaceCreated(android.view.SurfaceHolder); method public void surfaceDestroyed(android.view.SurfaceHolder); method public deprecated void surfaceDestroyed(android.view.SurfaceHolder); } } public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener { public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener { Loading Loading @@ -19432,7 +19432,7 @@ package android.renderscript { method public void pause(); method public void pause(); method public void resume(); method public void resume(); method public void setSurface(android.view.SurfaceHolder, int, int); method public void setSurface(android.view.SurfaceHolder, int, int); method public void setSurfaceTexture(android.graphics.SurfaceTexture, int, int); method public deprecated void setSurfaceTexture(android.graphics.SurfaceTexture, int, int); } } public static class RenderScriptGL.SurfaceConfig { public static class RenderScriptGL.SurfaceConfig {
graphics/java/android/renderscript/Mesh.java +29 −1 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2008-2012 The Android Open Source Project * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -373,6 +373,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Mesh builder object. It starts empty and requires the user to * Mesh builder object. It starts empty and requires the user to * add all the vertex and index allocations that comprise the * add all the vertex and index allocations that comprise the * mesh * mesh Loading @@ -391,6 +392,9 @@ public class Mesh extends BaseObj { Vector mIndexTypes; Vector mIndexTypes; /** * @deprecated in API 16 **/ public AllocationBuilder(RenderScript rs) { public AllocationBuilder(RenderScript rs) { mRS = rs; mRS = rs; mVertexTypeCount = 0; mVertexTypeCount = 0; Loading @@ -399,6 +403,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * @return internal index of the last vertex buffer type added to * @return internal index of the last vertex buffer type added to * builder * builder **/ **/ Loading @@ -407,6 +412,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * @return internal index of the last index set added to the * @return internal index of the last index set added to the * builder * builder **/ **/ Loading @@ -415,6 +421,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an allocation containing vertex buffer data to the * Adds an allocation containing vertex buffer data to the * builder * builder * * Loading @@ -434,6 +441,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an allocation containing index buffer data and index type * Adds an allocation containing index buffer data and index type * to the builder * to the builder * * Loading @@ -451,6 +459,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds an index set type to the builder * Adds an index set type to the builder * * * @param p index set primitive type * @param p index set primitive type Loading @@ -466,6 +475,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Create a Mesh object from the current state of the builder * Create a Mesh object from the current state of the builder * * **/ **/ Loading Loading @@ -507,6 +517,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Builder that allows creation of a mesh object point by point * Builder that allows creation of a mesh object point by point * and triangle by triangle * and triangle by triangle * * Loading @@ -533,11 +544,21 @@ public class Mesh extends BaseObj { int mVtxSize; int mVtxSize; int mFlags; int mFlags; /** * @deprecated in API 16 **/ public static final int COLOR = 0x0001; public static final int COLOR = 0x0001; /** * @deprecated in API 16 **/ public static final int NORMAL = 0x0002; public static final int NORMAL = 0x0002; /** * @deprecated in API 16 **/ public static final int TEXTURE_0 = 0x0100; public static final int TEXTURE_0 = 0x0100; /** /** * @deprecated in API 16 * @param rs Context to which the mesh will belong. * @param rs Context to which the mesh will belong. * @param vtxSize specifies whether the vertex is a float2 or * @param vtxSize specifies whether the vertex is a float2 or * float3 * float3 Loading Loading @@ -593,6 +614,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a float2 vertex to the mesh * Adds a float2 vertex to the mesh * * * @param x position x * @param x position x Loading @@ -613,6 +635,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a float3 vertex to the mesh * Adds a float3 vertex to the mesh * * * @param x position x * @param x position x Loading @@ -636,6 +659,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the texture coordinate for the vertices that are added after this method call. * Sets the texture coordinate for the vertices that are added after this method call. * * * @param s texture coordinate s * @param s texture coordinate s Loading @@ -653,6 +677,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the normal vector for the vertices that are added after this method call. * Sets the normal vector for the vertices that are added after this method call. * * * @param x normal vector x * @param x normal vector x Loading @@ -672,6 +697,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Sets the color for the vertices that are added after this method call. * Sets the color for the vertices that are added after this method call. * * * @param r red component * @param r red component Loading @@ -693,6 +719,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Adds a new triangle to the mesh builder * Adds a new triangle to the mesh builder * * * @param idx1 index of the first vertex in the triangle * @param idx1 index of the first vertex in the triangle Loading @@ -719,6 +746,7 @@ public class Mesh extends BaseObj { } } /** /** * @deprecated in API 16 * Creates the mesh object from the current state of the builder * Creates the mesh object from the current state of the builder * * * @param uploadToBufferObject specifies whether the vertex data * @param uploadToBufferObject specifies whether the vertex data Loading
graphics/java/android/renderscript/RSSurfaceView.java +21 −1 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2008 The Android Open Source Project * Copyright (C) 2008-2012 The Android Open Source Project * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -30,6 +30,7 @@ import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.SurfaceView; /** /** * @deprecated in API 16 * The Surface View for a graphics renderscript (RenderScriptGL) to draw on. * The Surface View for a graphics renderscript (RenderScriptGL) to draw on. * * * <div class="special reference"> * <div class="special reference"> Loading @@ -43,6 +44,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback private RenderScriptGL mRS; private RenderScriptGL mRS; /** /** * @deprecated in API 16 * Standard View constructor. In order to render something, you * Standard View constructor. In order to render something, you * must call {@link android.opengl.GLSurfaceView#setRenderer} to * must call {@link android.opengl.GLSurfaceView#setRenderer} to * register a renderer. * register a renderer. Loading @@ -54,6 +56,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Standard View constructor. In order to render something, you * Standard View constructor. In order to render something, you * must call {@link android.opengl.GLSurfaceView#setRenderer} to * must call {@link android.opengl.GLSurfaceView#setRenderer} to * register a renderer. * register a renderer. Loading @@ -72,6 +75,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -80,6 +84,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -93,6 +98,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * This method is part of the SurfaceHolder.Callback interface, and is * This method is part of the SurfaceHolder.Callback interface, and is * not normally called or subclassed by clients of RSSurfaceView. * not normally called or subclassed by clients of RSSurfaceView. */ */ Loading @@ -105,6 +111,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Inform the view that the activity is paused. The owner of this view must * Inform the view that the activity is paused. The owner of this view must * call this method when the activity is paused. Calling this method will * call this method when the activity is paused. Calling this method will * pause the rendering thread. * pause the rendering thread. Loading @@ -117,6 +124,7 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } /** /** * @deprecated in API 16 * Inform the view that the activity is resumed. The owner of this view must * Inform the view that the activity is resumed. The owner of this view must * call this method when the activity is resumed. Calling this method will * call this method when the activity is resumed. Calling this method will * recreate the OpenGL display and resume the rendering * recreate the OpenGL display and resume the rendering Loading @@ -129,12 +137,18 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } } } /** * @deprecated in API 16 **/ public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { public RenderScriptGL createRenderScriptGL(RenderScriptGL.SurfaceConfig sc) { RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); RenderScriptGL rs = new RenderScriptGL(this.getContext(), sc); setRenderScriptGL(rs); setRenderScriptGL(rs); return rs; return rs; } } /** * @deprecated in API 16 **/ public void destroyRenderScriptGL() { public void destroyRenderScriptGL() { synchronized (this) { synchronized (this) { mRS.destroy(); mRS.destroy(); Loading @@ -142,10 +156,16 @@ public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback } } } } /** * @deprecated in API 16 **/ public void setRenderScriptGL(RenderScriptGL rs) { public void setRenderScriptGL(RenderScriptGL rs) { mRS = rs; mRS = rs; } } /** * @deprecated in API 16 **/ public RenderScriptGL getRenderScriptGL() { public RenderScriptGL getRenderScriptGL() { return mRS; return mRS; } } Loading
graphics/java/android/renderscript/RenderScriptGL.java +1 −0 Original line number Original line Diff line number Diff line Loading @@ -206,6 +206,7 @@ public class RenderScriptGL extends RenderScript { } } /** /** * @deprecated in API 16 * Bind an os surface * Bind an os surface * * * @param w * @param w Loading