Add @UnsupportedAppUsage annotations
For packages: android.renderscript This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: I1aa8ebca448547031b426a7b305c5c3d6fcf2652
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.renderscript;
|
||||
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
|
||||
|
||||
/**
|
||||
* @hide
|
||||
@@ -38,6 +40,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
*
|
||||
* @param va allocation containing fixed function matrices
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void bindConstants(Constants va) {
|
||||
mRS.validate();
|
||||
bindConstants(va.getAllocation(), 0);
|
||||
@@ -118,6 +121,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
*
|
||||
* @param rs Context to which the program will belong.
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public Builder(RenderScript rs) {
|
||||
mRS = rs;
|
||||
}
|
||||
@@ -170,6 +174,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
*
|
||||
* @return Fixed function emulation ProgramVertex
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public ProgramVertexFixedFunction create() {
|
||||
buildShaderString();
|
||||
|
||||
@@ -215,6 +220,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
*
|
||||
* @param rs Context to which the allocation will belong.
|
||||
**/
|
||||
@UnsupportedAppUsage
|
||||
public Constants(RenderScript rs) {
|
||||
Type constInputType = ProgramVertexFixedFunction.Builder.getConstantInputType(rs);
|
||||
mAlloc = Allocation.createTyped(rs, constInputType);
|
||||
@@ -268,6 +274,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
|
||||
*
|
||||
* @param m projection matrix
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
public void setProjection(Matrix4f m) {
|
||||
mProjection.load(m);
|
||||
addToBuffer(PROJECTION_OFFSET*4, m);
|
||||
|
||||
Reference in New Issue
Block a user