Skip to content

Commit 2ed09ea

Browse files
Dave BurkeAndroid (Google) Code Review
authored andcommitted
Merge "GFX api cleanup 2 of 2" into jb-dev
2 parents a53de06 + d4ca991 commit 2ed09ea

File tree

7 files changed

+200
-81
lines changed

7 files changed

+200
-81
lines changed

api/current.txt

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -19073,12 +19073,12 @@ package android.renderscript {
1907319073
method public void transpose();
1907419074
}
1907519075

19076-
public class Mesh extends android.renderscript.BaseObj {
19077-
method public android.renderscript.Allocation getIndexSetAllocation(int);
19078-
method public android.renderscript.Mesh.Primitive getPrimitive(int);
19079-
method public int getPrimitiveCount();
19080-
method public android.renderscript.Allocation getVertexAllocation(int);
19081-
method public int getVertexAllocationCount();
19076+
public deprecated class Mesh extends android.renderscript.BaseObj {
19077+
method public deprecated android.renderscript.Allocation getIndexSetAllocation(int);
19078+
method public deprecated android.renderscript.Mesh.Primitive getPrimitive(int);
19079+
method public deprecated int getPrimitiveCount();
19080+
method public deprecated android.renderscript.Allocation getVertexAllocation(int);
19081+
method public deprecated int getVertexAllocationCount();
1908219082
}
1908319083

1908419084
public static deprecated class Mesh.AllocationBuilder {
@@ -19091,27 +19091,27 @@ package android.renderscript {
1909119091
method public deprecated int getCurrentVertexTypeIndex();
1909219092
}
1909319093

19094-
public static class Mesh.Builder {
19095-
ctor public Mesh.Builder(android.renderscript.RenderScript, int);
19096-
method public android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Type, android.renderscript.Mesh.Primitive);
19097-
method public android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Mesh.Primitive);
19098-
method public android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Element, int, android.renderscript.Mesh.Primitive);
19099-
method public android.renderscript.Mesh.Builder addVertexType(android.renderscript.Type) throws java.lang.IllegalStateException;
19100-
method public android.renderscript.Mesh.Builder addVertexType(android.renderscript.Element, int) throws java.lang.IllegalStateException;
19101-
method public android.renderscript.Mesh create();
19102-
method public int getCurrentIndexSetIndex();
19103-
method public int getCurrentVertexTypeIndex();
19094+
public static deprecated class Mesh.Builder {
19095+
ctor public deprecated Mesh.Builder(android.renderscript.RenderScript, int);
19096+
method public deprecated android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Type, android.renderscript.Mesh.Primitive);
19097+
method public deprecated android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Mesh.Primitive);
19098+
method public deprecated android.renderscript.Mesh.Builder addIndexSetType(android.renderscript.Element, int, android.renderscript.Mesh.Primitive);
19099+
method public deprecated android.renderscript.Mesh.Builder addVertexType(android.renderscript.Type) throws java.lang.IllegalStateException;
19100+
method public deprecated android.renderscript.Mesh.Builder addVertexType(android.renderscript.Element, int) throws java.lang.IllegalStateException;
19101+
method public deprecated android.renderscript.Mesh create();
19102+
method public deprecated int getCurrentIndexSetIndex();
19103+
method public deprecated int getCurrentVertexTypeIndex();
1910419104
}
1910519105

19106-
public static final class Mesh.Primitive extends java.lang.Enum {
19106+
public static final deprecated class Mesh.Primitive extends java.lang.Enum {
1910719107
method public static android.renderscript.Mesh.Primitive valueOf(java.lang.String);
1910819108
method public static final android.renderscript.Mesh.Primitive[] values();
19109-
enum_constant public static final android.renderscript.Mesh.Primitive LINE;
19110-
enum_constant public static final android.renderscript.Mesh.Primitive LINE_STRIP;
19111-
enum_constant public static final android.renderscript.Mesh.Primitive POINT;
19112-
enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE;
19113-
enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_FAN;
19114-
enum_constant public static final android.renderscript.Mesh.Primitive TRIANGLE_STRIP;
19109+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive LINE;
19110+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive LINE_STRIP;
19111+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive POINT;
19112+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive TRIANGLE;
19113+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive TRIANGLE_FAN;
19114+
enum_constant public static final deprecated android.renderscript.Mesh.Primitive TRIANGLE_STRIP;
1911519115
}
1911619116

1911719117
public static deprecated class Mesh.TriangleMeshBuilder {
@@ -19158,12 +19158,12 @@ package android.renderscript {
1915819158
enum_constant public static final android.renderscript.Program.TextureType TEXTURE_CUBE;
1915919159
}
1916019160

19161-
public class ProgramFragment extends android.renderscript.Program {
19161+
public deprecated class ProgramFragment extends android.renderscript.Program {
1916219162
}
1916319163

19164-
public static class ProgramFragment.Builder extends android.renderscript.Program.BaseProgramBuilder {
19165-
ctor public ProgramFragment.Builder(android.renderscript.RenderScript);
19166-
method public android.renderscript.ProgramFragment create();
19164+
public static deprecated class ProgramFragment.Builder extends android.renderscript.Program.BaseProgramBuilder {
19165+
ctor public deprecated ProgramFragment.Builder(android.renderscript.RenderScript);
19166+
method public deprecated android.renderscript.ProgramFragment create();
1916719167
}
1916819168

1916919169
public deprecated class ProgramFragmentFixedFunction extends android.renderscript.ProgramFragment {
@@ -19195,27 +19195,27 @@ package android.renderscript {
1919519195
enum_constant public static final deprecated android.renderscript.ProgramFragmentFixedFunction.Builder.Format RGBA;
1919619196
}
1919719197

19198-
public class ProgramRaster extends android.renderscript.BaseObj {
19199-
method public static android.renderscript.ProgramRaster CULL_BACK(android.renderscript.RenderScript);
19200-
method public static android.renderscript.ProgramRaster CULL_FRONT(android.renderscript.RenderScript);
19201-
method public static android.renderscript.ProgramRaster CULL_NONE(android.renderscript.RenderScript);
19202-
method public android.renderscript.ProgramRaster.CullMode getCullMode();
19203-
method public boolean isPointSpriteEnabled();
19198+
public deprecated class ProgramRaster extends android.renderscript.BaseObj {
19199+
method public static deprecated android.renderscript.ProgramRaster CULL_BACK(android.renderscript.RenderScript);
19200+
method public static deprecated android.renderscript.ProgramRaster CULL_FRONT(android.renderscript.RenderScript);
19201+
method public static deprecated android.renderscript.ProgramRaster CULL_NONE(android.renderscript.RenderScript);
19202+
method public deprecated android.renderscript.ProgramRaster.CullMode getCullMode();
19203+
method public deprecated boolean isPointSpriteEnabled();
1920419204
}
1920519205

19206-
public static class ProgramRaster.Builder {
19207-
ctor public ProgramRaster.Builder(android.renderscript.RenderScript);
19208-
method public android.renderscript.ProgramRaster create();
19209-
method public android.renderscript.ProgramRaster.Builder setCullMode(android.renderscript.ProgramRaster.CullMode);
19210-
method public android.renderscript.ProgramRaster.Builder setPointSpriteEnabled(boolean);
19206+
public static deprecated class ProgramRaster.Builder {
19207+
ctor public deprecated ProgramRaster.Builder(android.renderscript.RenderScript);
19208+
method public deprecated android.renderscript.ProgramRaster create();
19209+
method public deprecated android.renderscript.ProgramRaster.Builder setCullMode(android.renderscript.ProgramRaster.CullMode);
19210+
method public deprecated android.renderscript.ProgramRaster.Builder setPointSpriteEnabled(boolean);
1921119211
}
1921219212

19213-
public static final class ProgramRaster.CullMode extends java.lang.Enum {
19213+
public static final deprecated class ProgramRaster.CullMode extends java.lang.Enum {
1921419214
method public static android.renderscript.ProgramRaster.CullMode valueOf(java.lang.String);
1921519215
method public static final android.renderscript.ProgramRaster.CullMode[] values();
19216-
enum_constant public static final android.renderscript.ProgramRaster.CullMode BACK;
19217-
enum_constant public static final android.renderscript.ProgramRaster.CullMode FRONT;
19218-
enum_constant public static final android.renderscript.ProgramRaster.CullMode NONE;
19216+
enum_constant public static final deprecated android.renderscript.ProgramRaster.CullMode BACK;
19217+
enum_constant public static final deprecated android.renderscript.ProgramRaster.CullMode FRONT;
19218+
enum_constant public static final deprecated android.renderscript.ProgramRaster.CullMode NONE;
1921919219
}
1922019220

1922119221
public class ProgramStore extends android.renderscript.BaseObj {
@@ -19283,15 +19283,15 @@ package android.renderscript {
1928319283
enum_constant public static final android.renderscript.ProgramStore.DepthFunc NOT_EQUAL;
1928419284
}
1928519285

19286-
public class ProgramVertex extends android.renderscript.Program {
19287-
method public android.renderscript.Element getInput(int);
19288-
method public int getInputCount();
19286+
public deprecated class ProgramVertex extends android.renderscript.Program {
19287+
method public deprecated android.renderscript.Element getInput(int);
19288+
method public deprecated int getInputCount();
1928919289
}
1929019290

19291-
public static class ProgramVertex.Builder extends android.renderscript.Program.BaseProgramBuilder {
19292-
ctor public ProgramVertex.Builder(android.renderscript.RenderScript);
19293-
method public android.renderscript.ProgramVertex.Builder addInput(android.renderscript.Element) throws java.lang.IllegalStateException;
19294-
method public android.renderscript.ProgramVertex create();
19291+
public static deprecated class ProgramVertex.Builder extends android.renderscript.Program.BaseProgramBuilder {
19292+
ctor public deprecated ProgramVertex.Builder(android.renderscript.RenderScript);
19293+
method public deprecated android.renderscript.ProgramVertex.Builder addInput(android.renderscript.Element) throws java.lang.IllegalStateException;
19294+
method public deprecated android.renderscript.ProgramVertex create();
1929519295
}
1929619296

1929719297
public deprecated class ProgramVertexFixedFunction extends android.renderscript.ProgramVertex {
@@ -19342,19 +19342,19 @@ package android.renderscript {
1934219342
method public deprecated void surfaceDestroyed(android.view.SurfaceHolder);
1934319343
}
1934419344

19345-
public class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener {
19346-
ctor public RSTextureView(android.content.Context);
19347-
ctor public RSTextureView(android.content.Context, android.util.AttributeSet);
19348-
method public android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig);
19349-
method public void destroyRenderScriptGL();
19350-
method public android.renderscript.RenderScriptGL getRenderScriptGL();
19351-
method public void onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int);
19352-
method public boolean onSurfaceTextureDestroyed(android.graphics.SurfaceTexture);
19353-
method public void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture, int, int);
19354-
method public void onSurfaceTextureUpdated(android.graphics.SurfaceTexture);
19355-
method public void pause();
19356-
method public void resume();
19357-
method public void setRenderScriptGL(android.renderscript.RenderScriptGL);
19345+
public deprecated class RSTextureView extends android.view.TextureView implements android.view.TextureView.SurfaceTextureListener {
19346+
ctor public deprecated RSTextureView(android.content.Context);
19347+
ctor public deprecated RSTextureView(android.content.Context, android.util.AttributeSet);
19348+
method public deprecated android.renderscript.RenderScriptGL createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig);
19349+
method public deprecated void destroyRenderScriptGL();
19350+
method public deprecated android.renderscript.RenderScriptGL getRenderScriptGL();
19351+
method public deprecated void onSurfaceTextureAvailable(android.graphics.SurfaceTexture, int, int);
19352+
method public deprecated boolean onSurfaceTextureDestroyed(android.graphics.SurfaceTexture);
19353+
method public deprecated void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture, int, int);
19354+
method public deprecated void onSurfaceTextureUpdated(android.graphics.SurfaceTexture);
19355+
method public deprecated void pause();
19356+
method public deprecated void resume();
19357+
method public deprecated void setRenderScriptGL(android.renderscript.RenderScriptGL);
1935819358
}
1935919359

1936019360
public class RenderScript {
@@ -19392,28 +19392,28 @@ package android.renderscript {
1939219392
field protected int mLength;
1939319393
}
1939419394

19395-
public class RenderScriptGL extends android.renderscript.RenderScript {
19396-
ctor public RenderScriptGL(android.content.Context, android.renderscript.RenderScriptGL.SurfaceConfig);
19397-
method public void bindProgramFragment(android.renderscript.ProgramFragment);
19398-
method public void bindProgramRaster(android.renderscript.ProgramRaster);
19399-
method public void bindProgramStore(android.renderscript.ProgramStore);
19400-
method public void bindProgramVertex(android.renderscript.ProgramVertex);
19401-
method public void bindRootScript(android.renderscript.Script);
19402-
method public int getHeight();
19403-
method public int getWidth();
19404-
method public void pause();
19405-
method public void resume();
19406-
method public void setSurface(android.view.SurfaceHolder, int, int);
19395+
public deprecated class RenderScriptGL extends android.renderscript.RenderScript {
19396+
ctor public deprecated RenderScriptGL(android.content.Context, android.renderscript.RenderScriptGL.SurfaceConfig);
19397+
method public deprecated void bindProgramFragment(android.renderscript.ProgramFragment);
19398+
method public deprecated void bindProgramRaster(android.renderscript.ProgramRaster);
19399+
method public deprecated void bindProgramStore(android.renderscript.ProgramStore);
19400+
method public deprecated void bindProgramVertex(android.renderscript.ProgramVertex);
19401+
method public deprecated void bindRootScript(android.renderscript.Script);
19402+
method public deprecated int getHeight();
19403+
method public deprecated int getWidth();
19404+
method public deprecated void pause();
19405+
method public deprecated void resume();
19406+
method public deprecated void setSurface(android.view.SurfaceHolder, int, int);
1940719407
method public deprecated void setSurfaceTexture(android.graphics.SurfaceTexture, int, int);
1940819408
}
1940919409

19410-
public static class RenderScriptGL.SurfaceConfig {
19411-
ctor public RenderScriptGL.SurfaceConfig();
19412-
ctor public RenderScriptGL.SurfaceConfig(android.renderscript.RenderScriptGL.SurfaceConfig);
19413-
method public void setAlpha(int, int);
19414-
method public void setColor(int, int);
19415-
method public void setDepth(int, int);
19416-
method public void setSamples(int, int, float);
19410+
public static deprecated class RenderScriptGL.SurfaceConfig {
19411+
ctor public deprecated RenderScriptGL.SurfaceConfig();
19412+
ctor public deprecated RenderScriptGL.SurfaceConfig(android.renderscript.RenderScriptGL.SurfaceConfig);
19413+
method public deprecated void setAlpha(int, int);
19414+
method public deprecated void setColor(int, int);
19415+
method public deprecated void setDepth(int, int);
19416+
method public deprecated void setSamples(int, int, float);
1941719417
}
1941819418

1941919419
public class Sampler extends android.renderscript.BaseObj {

0 commit comments

Comments
 (0)