Home
last modified time | relevance | path

Searched refs:mShader (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/rs/java/android/renderscript/
DProgramFragmentFixedFunction.java74 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
92 String mShader; field in ProgramFragmentFixedFunction.Builder
162 mShader = "//rs_shader_internal\n"; in buildShaderString()
163 mShader += "varying lowp vec4 varColor;\n"; in buildShaderString()
164 mShader += "varying vec2 varTex0;\n"; in buildShaderString()
166 mShader += "void main() {\n"; in buildShaderString()
168 mShader += " lowp vec4 col = varColor;\n"; in buildShaderString()
170 mShader += " lowp vec4 col = UNI_Color;\n"; in buildShaderString()
175 mShader += " vec2 t0 = gl_PointCoord;\n"; in buildShaderString()
177 mShader += " vec2 t0 = varTex0.xy;\n"; in buildShaderString()
[all …]
DProgramVertexFixedFunction.java100 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
112 String mShader; field in ProgramVertexFixedFunction.Builder
149 mShader = "//rs_shader_internal\n"; in buildShaderString()
150 mShader += "varying vec4 varColor;\n"; in buildShaderString()
151 mShader += "varying vec2 varTex0;\n"; in buildShaderString()
153 mShader += "void main() {\n"; in buildShaderString()
154 mShader += " gl_Position = UNI_MVP * ATTRIB_position;\n"; in buildShaderString()
155 mShader += " gl_PointSize = 1.0;\n"; in buildShaderString()
157 mShader += " varColor = ATTRIB_color;\n"; in buildShaderString()
159 mShader += " varTex0 = (UNI_TexMatrix * vec4(ATTRIB_texture0, 0.0, 1.0)).xy;\n"; in buildShaderString()
[all …]
DProgram.java75 String mShader; field in Program
213 String mShader; field in Program.BaseProgramBuilder
236 mShader = s; in setShader()
278 mShader = new String(str, 0, strLength, "UTF-8"); in setShader()
DProgramFragment.java87 long id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
DProgramVertex.java147 long id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
/frameworks/rs/driver/
DrsdShader.cpp174 case 1: mShader.append("attribute float ATTRIB_"); break; in appendAttributes()
175 case 2: mShader.append("attribute vec2 ATTRIB_"); break; in appendAttributes()
176 case 3: mShader.append("attribute vec3 ATTRIB_"); break; in appendAttributes()
177 case 4: mShader.append("attribute vec4 ATTRIB_"); break; in appendAttributes()
182 mShader.append(fn); in appendAttributes()
183 mShader.append(";\n"); in appendAttributes()
198 mShader.append("#extension GL_OES_EGL_image_external : require\n"); in appendTextures()
201 mShader.append("uniform samplerExternalOES UNI_"); in appendTextures()
204 mShader.append("uniform sampler2D UNI_"); in appendTextures()
208 mShader.append("uniform samplerCube UNI_"); in appendTextures()
[all …]
DrsdShader.h107 std::string mShader; variable
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DCropFilter.java39 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()
DRotateFilter.java33 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()
DToGrayValuesFilter.java56 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()
DBrightnessFilter.java31 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()
DSurfaceHolderTarget.java43 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/tests/HwAccelerationTest/src/com/android/test/hwui/
DLinesActivity.java62 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()
DPathsActivity.java45 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/core/java/android/content/res/
DGradientColor.java93 private Shader mShader = null; field in GradientColor
131 mShader = copy.mShader; in GradientColor()
245 return mShader; in getShader()
468 mShader = new LinearGradient(mStartX, mStartY, mEndX, mEndY, tempColors, tempOffsets, in onColorsChange()
472 mShader = new RadialGradient(mCenterX, mCenterY, mGradientRadius, tempColors, in onColorsChange()
475 mShader = new SweepGradient(mCenterX, mCenterY, tempColors, tempOffsets); in onColorsChange()
/frameworks/base/graphics/java/android/graphics/
DPaint.java62 private Shader mShader; field in Paint
495 mShader = null; in reset()
533 mShader = paint.mShader; in setClassVariablesFrom()
567 long newNativeShader = mShader == null ? 0 : mShader.getNativeInstance(); in getNativeInstance()
1033 return mShader; in getShader()
1048 if (mShader != shader) { in setShader()
1052 mShader = shader; in setShader()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java98 private Shader_Delegate mShader; field in Paint_Delegate
231 mShader = Shader_Delegate.getDelegate(shaderPtr); in setShader()
240 return mShader; in getShader()
819 delegate.mShader = Shader_Delegate.getDelegate(shader); in nSetShader()
1220 mShader = paint.mShader; in set()
1247 mShader = null; in reset()
/frameworks/base/libs/hwui/
DGlopBuilder.cpp64 , mShader(nullptr) in GlopBuilder()
282 mShader = shader; // shader resolved in ::build() in setFill()
652 if (CC_LIKELY(!mShader)) { in build()
664 SkiaShader::store(mCaches, *mShader, shaderMatrix, in build()
DGlopBuilder.h130 const SkShader* mShader; variable
/frameworks/base/docs/html/training/custom-views/
Dcustom-drawing.jd273 mPiePaint.setShader(it.mShader);