/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
FragmentShader.java | 38 FragmentShader mShader; 42 mShader = new FragmentShader(); 57 mShader.mPerObjConstants = type; 62 mShader.mPerShaderConstants = type; 67 mShader.mShaderTextureNames.add(name); 68 mShader.mShaderTextureTypes.add(texType); 73 mShader.mTextureNames.add(name); 74 mShader.mTextureTypes.add(texType); 79 if (mShader.mPerShaderConstants != null) { 80 mBuilder.addConstant(mShader.mPerShaderConstants) [all...] |
VertexShader.java | 34 VertexShader mShader; 38 mShader = new VertexShader(); 53 mShader.mPerObjConstants = type; 58 mShader.mPerShaderConstants = type; 68 if (mShader.mPerShaderConstants != null) { 69 mBuilder.addConstant(mShader.mPerShaderConstants); 71 if (mShader.mPerObjConstants != null) { 72 mBuilder.addConstant(mShader.mPerObjConstants); 74 mShader.mProgram = mBuilder.create(); 75 return mShader; [all...] |
/frameworks/base/graphics/java/android/renderscript/ |
ProgramFragmentFixedFunction.java | 77 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); 95 String mShader; 165 mShader = "//rs_shader_internal\n"; 166 mShader += "varying lowp vec4 varColor;\n"; 167 mShader += "varying vec2 varTex0;\n"; 169 mShader += "void main() {\n"; 171 mShader += " lowp vec4 col = varColor;\n"; 173 mShader += " lowp vec4 col = UNI_Color;\n"; 178 mShader += " vec2 t0 = gl_PointCoord;\n"; 180 mShader += " vec2 t0 = varTex0.xy;\n" [all...] |
ProgramVertexFixedFunction.java | 104 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); 116 String mShader; 153 mShader = "//rs_shader_internal\n"; 154 mShader += "varying vec4 varColor;\n"; 155 mShader += "varying vec2 varTex0;\n"; 157 mShader += "void main() {\n"; 158 mShader += " gl_Position = UNI_MVP * ATTRIB_position;\n"; 159 mShader += " gl_PointSize = 1.0;\n"; 161 mShader += " varColor = ATTRIB_color;\n"; 163 mShader += " varTex0 = (UNI_TexMatrix * vec4(ATTRIB_texture0, 0.0, 1.0)).xy;\n" [all...] |
Program.java | 75 String mShader; 212 String mShader; 235 mShader = s; 277 mShader = new String(str, 0, strLength, "UTF-8");
|
ProgramFragment.java | 90 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp);
|
ProgramVertex.java | 151 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
RotateFilter.java | 33 private ImageShader mShader; 64 mShader = ImageShader.createIdentity(); 74 mShader.setSourceQuad(mSourceRect); 76 mShader.setTargetQuad(targetQuad); 77 mShader.process(inputImage, outputImage);
|
BrightnessFilter.java | 31 private ImageShader mShader; 74 mShader = new ImageShader(mBrightnessShader); 83 mShader.setUniformValue("brightness", mBrightness); 84 mShader.process(inputImage, outputImage);
|
ToGrayValuesFilter.java | 56 private ImageShader mShader; 77 mShader = new ImageShader(mGrayPackFragment); 98 mShader.setSourceQuad(Quad.fromRect(0f, 0f, ((float)outDim[0])/dim[0], 1f)); 99 mShader.setUniformValue("pix_stride", 1f / outDim[0]); 100 mShader.process(inputImage, targetFrame);
|
CropFilter.java | 40 private ImageShader mShader; 82 mShader = ImageShader.createIdentity(); 109 mShader.setSourceQuad(mCropRect); 110 mShader.setTargetQuad(targetQuad); 111 mShader.process(inputImage, mPow2Frame); 120 mShader.setSourceQuad(sourceQuad); 121 mShader.setTargetRect(0f, 0f, 1f, 1f); 122 mShader.process(sourceFrame, outputImage);
|
SurfaceHolderTarget.java | 43 private ImageShader mShader = null; 113 mShader = ImageShader.createIdentity(); 150 setupShader(mShader, frameRect, surfRect); 151 mShader.process(image.lockTextureSource(),
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Sweep.java | 37 private Shader mShader; 47 mShader = new SweepGradient(x, y, new int[] { Color.GREEN, 51 mPaint.setShader(mShader); 62 mShader.setLocalMatrix(mMatrix);
|
AlphaBitmap.java | 40 private Shader mShader; 70 mShader = new LinearGradient(0, 0, 100, 70, new int[] { 86 p.setShader(mShader);
|
/frameworks/rs/driver/ |
rsdShader.cpp | 174 case 1: mShader.append("attribute float ATTRIB_"); break; 175 case 2: mShader.append("attribute vec2 ATTRIB_"); break; 176 case 3: mShader.append("attribute vec3 ATTRIB_"); break; 177 case 4: mShader.append("attribute vec4 ATTRIB_"); break; 182 mShader.append(fn); 183 mShader.append(";\n"); 198 mShader.append("#extension GL_OES_EGL_image_external : require\n"); 201 mShader.append("uniform samplerExternalOES UNI_"); 204 mShader.append("uniform sampler2D UNI_"); 208 mShader.append("uniform samplerCube UNI_") [all...] |
rsdShader.h | 107 android::String8 mShader;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
LinesActivity.java | 62 private final BitmapShader mShader; 99 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, 125 mLargePaint.setShader(mShader); 144 mAlphaPaint.setShader(mShader);
|
PathsActivity.java | 45 private final BitmapShader mShader; 82 mShader = new BitmapShader(mBitmap1, BitmapShader.TileMode.MIRROR, 120 mLargePaint.setShader(mShader); 137 mLargePaint.setShader(mShader);
|
/frameworks/base/graphics/java/android/graphics/ |
Paint.java | 41 private Shader mShader; 482 mShader = null; 522 if (paint.mShader != null) { 523 mShader = paint.mShader.copy(); 525 mShader = null; 933 return mShader; 950 mShader = shader; [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
Paint_Delegate.java | 89 private Shader_Delegate mShader; 225 return mShader; 790 delegate.mShader = Shader_Delegate.getDelegate(shader); [all...] |
/frameworks/base/libs/hwui/ |
OpenGLRenderer.cpp | [all...] |
DeferredDisplayList.cpp | 241 if (lhsMod.mShader != rhsMod.mShader) return false;
|
DisplayListOp.h | 202 if (state.mDrawModifiers.mShader || 611 : mShader(shader) {} 613 renderer.setupShader(mShader); 617 OP_LOG("SetupShader, shader %p", mShader); 623 SkiaShader* mShader; [all...] |
OpenGLRenderer.h | 63 SkiaShader* mShader; [all...] |