/frameworks/base/graphics/java/android/renderscript/ |
D | ProgramFragmentFixedFunction.java | 69 int id = mRS.nProgramFragmentCreate(mShader, tmp); in create() 81 String mShader; field in ProgramFragmentFixedFunction.Builder 128 mShader = "//rs_shader_internal\n"; in buildShaderString() 129 mShader += "varying lowp vec4 varColor;\n"; in buildShaderString() 130 mShader += "varying vec2 varTex0;\n"; in buildShaderString() 132 mShader += "void main() {\n"; in buildShaderString() 134 mShader += " lowp vec4 col = varColor;\n"; in buildShaderString() 136 mShader += " lowp vec4 col = UNI_Color;\n"; in buildShaderString() 141 mShader += " vec2 t0 = gl_PointCoord;\n"; in buildShaderString() 143 mShader += " vec2 t0 = varTex0.xy;\n"; in buildShaderString() [all …]
|
D | ProgramVertexFixedFunction.java | 92 int id = mRS.nProgramVertexCreate(mShader, tmp); in create() 101 String mShader; field in ProgramVertexFixedFunction.Builder 136 mShader = "//rs_shader_internal\n"; in buildShaderString() 137 mShader += "varying vec4 varColor;\n"; in buildShaderString() 138 mShader += "varying vec2 varTex0;\n"; in buildShaderString() 140 mShader += "void main() {\n"; in buildShaderString() 141 mShader += " gl_Position = UNI_MVP * ATTRIB_position;\n"; in buildShaderString() 142 mShader += " gl_PointSize = 1.0;\n"; in buildShaderString() 144 mShader += " varColor = ATTRIB_color;\n"; in buildShaderString() 146 mShader += " varTex0 = (UNI_TexMatrix * vec4(ATTRIB_texture0, 0.0, 1.0)).xy;\n"; in buildShaderString() [all …]
|
D | Program.java | 73 String mShader; field in Program 153 String mShader; field in Program.BaseProgramBuilder 175 mShader = s; in setShader() 217 mShader = new String(str, 0, strLength, "UTF-8"); in setShader()
|
D | ProgramFragment.java | 81 int id = mRS.nProgramFragmentCreate(mShader, tmp); in create()
|
D | ProgramVertex.java | 121 int id = mRS.nProgramVertexCreate(mShader, tmp); in create()
|
/frameworks/base/libs/rs/driver/ |
D | rsdShader.cpp | 128 case 1: mShader.append("attribute float ATTRIB_"); break; in appendAttributes() 129 case 2: mShader.append("attribute vec2 ATTRIB_"); break; in appendAttributes() 130 case 3: mShader.append("attribute vec3 ATTRIB_"); break; in appendAttributes() 131 case 4: mShader.append("attribute vec4 ATTRIB_"); break; in appendAttributes() 136 mShader.append(fn); in appendAttributes() 137 mShader.append(";\n"); in appendAttributes() 152 mShader.append(buf); in appendTextures() 159 mShader.append("precision mediump float;\n"); in createShader() 165 mShader.append(mUserShader); in createShader() 176 LOGV("%s", mShader.string()); in loadShader() [all …]
|
D | rsdShader.h | 81 android::String8 mShader; variable
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | LinesActivity.java | 62 private final BitmapShader mShader; field in LinesActivity.LinesView 99 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, in LinesView() 125 mLargePaint.setShader(mShader); in onDraw() 144 mAlphaPaint.setShader(mShader); in onDraw()
|
D | PathsActivity.java | 45 private final BitmapShader mShader; field in PathsActivity.PathsView 82 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, in PathsView() 120 mLargePaint.setShader(mShader); in onDraw() 137 mLargePaint.setShader(mShader); in onDraw()
|
/frameworks/base/libs/hwui/ |
D | OpenGLRenderer.cpp | 115 mShader = NULL; in OpenGLRenderer() 1077 if (mShader) { in setupDrawShader() 1078 mShader->describe(mDescription, mCaches.extensions); in setupDrawShader() 1100 chooseBlending((mColorSet && mColorA < 1.0f) || (mShader && mShader->blend()), mode, in setupDrawBlending() 1108 chooseBlending(blend || (mColorSet && mColorA < 1.0f) || (mShader && mShader->blend()), mode, in setupDrawBlending() 1162 if (mColorSet || (mShader && mSetShaderColor)) { in setupDrawColorUniforms() 1174 if (mShader) { in setupDrawShaderUniforms() 1178 mShader->setupProgram(mCaches.currentProgram, mModelView, *mSnapshot, &mTextureUnit); in setupDrawShaderUniforms() 1183 if (mShader) { in setupDrawShaderIdentityUniforms() 1184 mShader->setupProgram(mCaches.currentProgram, mIdentity, *mSnapshot, &mTextureUnit); in setupDrawShaderIdentityUniforms() [all …]
|
D | OpenGLRenderer.h | 563 SkiaShader* mShader; variable
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | Paint_Delegate.java | 89 private Shader_Delegate mShader; field in Paint_Delegate 223 return mShader; in getShader() 783 delegate.mShader = Shader_Delegate.getDelegate(shader); in native_setShader() 1120 mShader = paint.mShader; in set() 1143 mShader = null; in reset()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 39 private Shader mShader; field in Paint 400 mShader = paint.mShader; in setClassVariablesFrom() 806 return mShader; in getShader() 823 mShader = shader; in setShader()
|