/frameworks/base/rs/java/android/renderscript/ |
D | ProgramFragmentFixedFunction.java | 77 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create() 95 String mShader; field in ProgramFragmentFixedFunction.Builder 170 mShader = "//rs_shader_internal\n"; in buildShaderString() 171 mShader += "varying lowp vec4 varColor;\n"; in buildShaderString() 172 mShader += "varying vec2 varTex0;\n"; in buildShaderString() 174 mShader += "void main() {\n"; in buildShaderString() 176 mShader += " lowp vec4 col = varColor;\n"; in buildShaderString() 178 mShader += " lowp vec4 col = UNI_Color;\n"; in buildShaderString() 183 mShader += " vec2 t0 = gl_PointCoord;\n"; in buildShaderString() 185 mShader += " vec2 t0 = varTex0.xy;\n"; in buildShaderString() [all …]
|
D | ProgramVertexFixedFunction.java | 104 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create() 116 String mShader; field in ProgramVertexFixedFunction.Builder 154 mShader = "//rs_shader_internal\n"; in buildShaderString() 155 mShader += "varying vec4 varColor;\n"; in buildShaderString() 156 mShader += "varying vec2 varTex0;\n"; in buildShaderString() 158 mShader += "void main() {\n"; in buildShaderString() 159 mShader += " gl_Position = UNI_MVP * ATTRIB_position;\n"; in buildShaderString() 160 mShader += " gl_PointSize = 1.0;\n"; in buildShaderString() 162 mShader += " varColor = ATTRIB_color;\n"; in buildShaderString() 164 mShader += " varTex0 = (UNI_TexMatrix * vec4(ATTRIB_texture0, 0.0, 1.0)).xy;\n"; in buildShaderString() [all …]
|
D | Program.java | 81 String mShader; field in Program 228 String mShader; field in Program.BaseProgramBuilder 252 mShader = s; in setShader() 294 mShader = new String(str, 0, strLength, "UTF-8"); in setShader()
|
D | ProgramFragment.java | 92 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
|
D | ProgramVertex.java | 152 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
|
/frameworks/rs/driver/ |
D | rsdShader.cpp | 178 case 1: mShader.append("attribute float ATTRIB_"); break; in appendAttributes() 179 case 2: mShader.append("attribute vec2 ATTRIB_"); break; in appendAttributes() 180 case 3: mShader.append("attribute vec3 ATTRIB_"); break; in appendAttributes() 181 case 4: mShader.append("attribute vec4 ATTRIB_"); break; in appendAttributes() 186 mShader.append(fn); in appendAttributes() 187 mShader.append(";\n"); in appendAttributes() 202 mShader.append("#extension GL_OES_EGL_image_external : require\n"); in appendTextures() 205 mShader.append("uniform samplerExternalOES UNI_"); in appendTextures() 208 mShader.append("uniform sampler2D UNI_"); in appendTextures() 212 mShader.append("uniform samplerCube UNI_"); in appendTextures() [all …]
|
D | rsdShader.h | 108 std::string mShader; variable
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | BitmapTransitionView.kt | 44 private val mShader = RuntimeShader(AGSL) in <lambda>() constant 94 mShader.setInputShader("imageA", mShaderA) in <lambda>() 95 mShader.setInputShader("imageB", mShaderB) in <lambda>() 96 mShader.setIntUniform("imageDimensions", width, height) in <lambda>() 97 mShader.setFloatUniform("progress", mCurrentProgress) in <lambda>() 99 mPaint.shader = mShader in <lambda>()
|
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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | CropFilter.java | 39 private ImageShader mShader; field in CropFilter 81 mShader = ImageShader.createIdentity(); in onPrepare() 108 mShader.setSourceQuad(mCropRect); in onProcess() 109 mShader.setTargetQuad(targetQuad); in onProcess() 110 mShader.process(inputImage, mPow2Frame); in onProcess() 119 mShader.setSourceQuad(sourceQuad); in onProcess() 120 mShader.setTargetRect(0f, 0f, 1f, 1f); in onProcess() 121 mShader.process(sourceFrame, outputImage); in onProcess()
|
D | RotateFilter.java | 33 private ImageShader mShader; field in RotateFilter 64 mShader = ImageShader.createIdentity(); in onPrepare() 74 mShader.setSourceQuad(mSourceRect); in onProcess() 76 mShader.setTargetQuad(targetQuad); in onProcess() 77 mShader.process(inputImage, outputImage); in onProcess()
|
D | ToGrayValuesFilter.java | 56 private ImageShader mShader; field in ToGrayValuesFilter 77 mShader = new ImageShader(mGrayPackFragment); in onPrepare() 98 mShader.setSourceQuad(Quad.fromRect(0f, 0f, ((float)outDim[0])/dim[0], 1f)); in onProcess() 99 mShader.setUniformValue("pix_stride", 1f / outDim[0]); in onProcess() 100 mShader.process(inputImage, targetFrame); in onProcess()
|
D | BrightnessFilter.java | 31 private ImageShader mShader; field in BrightnessFilter 74 mShader = new ImageShader(mBrightnessShader); in onPrepare() 83 mShader.setUniformValue("brightness", mBrightness); in onProcess() 84 mShader.process(inputImage, outputImage); in onProcess()
|
D | SurfaceHolderTarget.java | 43 private ImageShader mShader = null; field in SurfaceHolderTarget 113 mShader = ImageShader.createIdentity(); in onPrepare() 150 setupShader(mShader, frameRect, surfRect); in renderGL() 151 mShader.process(image.lockTextureSource(), in renderGL()
|
/frameworks/base/core/java/android/content/res/ |
D | GradientColor.java | 98 private Shader mShader = null; field in GradientColor 136 mShader = copy.mShader; in GradientColor() 250 return mShader; in getShader() 473 mShader = new LinearGradient(mStartX, mStartY, mEndX, mEndY, tempColors, tempOffsets, in onColorsChange() 477 mShader = new RadialGradient(mCenterX, mCenterY, mGradientRadius, tempColors, in onColorsChange() 480 mShader = new SweepGradient(mCenterX, mCenterY, tempColors, tempOffsets); in onColorsChange()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleAnimationSession.java | 284 private final RippleShader mShader; field in RippleAnimationSession.AnimationProperties 296 mShader = shader; in AnimationProperties() 331 return mShader; in getShader()
|
/frameworks/base/libs/hwui/effects/ |
D | GainmapRenderer.cpp | 174 sk_sp<SkRuntimeEffect> mShader{gainmap_apply_effect()}; member in android::uirenderer::DeferredGainmapShader 175 SkRuntimeShaderBuilder mBuilder{mShader}; 296 return SkRuntimeEffectPriv::MakeDeferredShader(deferredHandler->mShader.get(), callback, in Make()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Paint.java | 80 private Shader mShader; field in Paint 713 mShader = null; in reset() 756 mShader = paint.mShader; in setClassVariablesFrom() 803 long newNativeShader = mShader == null ? 0 : mShader.getNativeInstance(filter); in getNativeInstance() 1345 return mShader; in getShader() 1360 if (mShader != shader) { in setShader() 1366 mShader = shader; in setShader()
|
/frameworks/base/libs/hwui/ |
D | SkiaCanvas.cpp | 74 : mType(Type::Shader), mOp(op), mMatrix(m), mShader(shader) {} in Clip() 92 canvas->clipShader(mShader, mOp); in apply() 111 sk_sp<SkShader> mShader; member in android::SkiaCanvas::Clip
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 13779 Landroid/content/res/GradientColor;->mShader:Landroid/graphics/Shader; 18074 Landroid/graphics/Paint;->mShader:Landroid/graphics/Shader; 45464 Landroid/renderscript/Program;->mShader:Ljava/lang/String; 45484 Landroid/renderscript/ProgramFragmentFixedFunction$Builder;->mShader:Ljava/lang/String; 45574 Landroid/renderscript/ProgramVertexFixedFunction$Builder;->mShader:Ljava/lang/String;
|