Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/renderscript/
DProgramFragmentFixedFunction.java77 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
95 String mShader; field in ProgramFragmentFixedFunction.Builder
165 mShader = "//rs_shader_internal\n"; in buildShaderString()
166 mShader += "varying lowp vec4 varColor;\n"; in buildShaderString()
167 mShader += "varying vec2 varTex0;\n"; in buildShaderString()
169 mShader += "void main() {\n"; in buildShaderString()
171 mShader += " lowp vec4 col = varColor;\n"; in buildShaderString()
173 mShader += " lowp vec4 col = UNI_Color;\n"; in buildShaderString()
178 mShader += " vec2 t0 = gl_PointCoord;\n"; in buildShaderString()
180 mShader += " vec2 t0 = varTex0.xy;\n"; in buildShaderString()
[all …]
DProgramVertexFixedFunction.java104 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
116 String mShader; field in ProgramVertexFixedFunction.Builder
153 mShader = "//rs_shader_internal\n"; in buildShaderString()
154 mShader += "varying vec4 varColor;\n"; in buildShaderString()
155 mShader += "varying vec2 varTex0;\n"; in buildShaderString()
157 mShader += "void main() {\n"; in buildShaderString()
158 mShader += " gl_Position = UNI_MVP * ATTRIB_position;\n"; in buildShaderString()
159 mShader += " gl_PointSize = 1.0;\n"; in buildShaderString()
161 mShader += " varColor = ATTRIB_color;\n"; in buildShaderString()
163 mShader += " varTex0 = (UNI_TexMatrix * vec4(ATTRIB_texture0, 0.0, 1.0)).xy;\n"; in buildShaderString()
[all …]
DProgram.java75 String mShader; field in Program
212 String mShader; field in Program.BaseProgramBuilder
235 mShader = s; in setShader()
277 mShader = new String(str, 0, strLength, "UTF-8"); in setShader()
DProgramFragment.java90 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
DProgramVertex.java151 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DFragmentShader.java38 FragmentShader mShader; field in FragmentShader.Builder
42 mShader = new FragmentShader(); in Builder()
57 mShader.mPerObjConstants = type; in setObjectConst()
62 mShader.mPerShaderConstants = type; in setShaderConst()
67 mShader.mShaderTextureNames.add(name); in addShaderTexture()
68 mShader.mShaderTextureTypes.add(texType); in addShaderTexture()
73 mShader.mTextureNames.add(name); in addTexture()
74 mShader.mTextureTypes.add(texType); in addTexture()
79 if (mShader.mPerShaderConstants != null) { in create()
80 mBuilder.addConstant(mShader.mPerShaderConstants); in create()
[all …]
DVertexShader.java34 VertexShader mShader; field in VertexShader.Builder
38 mShader = new VertexShader(); in Builder()
53 mShader.mPerObjConstants = type; in setObjectConst()
58 mShader.mPerShaderConstants = type; in setShaderConst()
68 if (mShader.mPerShaderConstants != null) { in create()
69 mBuilder.addConstant(mShader.mPerShaderConstants); in create()
71 if (mShader.mPerObjConstants != null) { in create()
72 mBuilder.addConstant(mShader.mPerObjConstants); in create()
74 mShader.mProgram = mBuilder.create(); in create()
75 return mShader; 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 android::String8 mShader; variable
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
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()
DCropFilter.java40 private ImageShader mShader; field in CropFilter
82 mShader = ImageShader.createIdentity(); in onPrepare()
109 mShader.setSourceQuad(mCropRect); in onProcess()
110 mShader.setTargetQuad(targetQuad); in onProcess()
111 mShader.process(inputImage, mPow2Frame); in onProcess()
120 mShader.setSourceQuad(sourceQuad); in onProcess()
121 mShader.setTargetRect(0f, 0f, 1f, 1f); in onProcess()
122 mShader.process(sourceFrame, 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/graphics/java/android/graphics/
DPaint.java41 private Shader mShader; field in Paint
482 mShader = null; in reset()
522 if (paint.mShader != null) { in setClassVariablesFrom()
523 mShader = paint.mShader.copy(); in setClassVariablesFrom()
525 mShader = null; in setClassVariablesFrom()
933 return mShader; in getShader()
950 mShader = shader; in setShader()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java89 private Shader_Delegate mShader; field in Paint_Delegate
225 return mShader; in getShader()
790 delegate.mShader = Shader_Delegate.getDelegate(shader); in native_setShader()
1097 mShader = paint.mShader; in set()
1120 mShader = null; in reset()
/frameworks/base/libs/hwui/
DOpenGLRenderer.cpp1821 if (mDrawModifiers.mShader) { in setupDrawShader()
1822 mDrawModifiers.mShader->describe(mDescription, mExtensions); in setupDrawShader()
1845 (mDrawModifiers.mShader && mDrawModifiers.mShader->blend()); in setupDrawBlending()
1854 (mDrawModifiers.mShader && mDrawModifiers.mShader->blend()) || in setupDrawBlending()
1904 if ((mColorSet && !mDrawModifiers.mShader) || (mDrawModifiers.mShader && mSetShaderColor)) { in setupDrawColorUniforms()
1916 if (mDrawModifiers.mShader) { in setupDrawShaderUniforms()
1920 mDrawModifiers.mShader->setupProgram(mCaches.currentProgram, in setupDrawShaderUniforms()
1926 if (mDrawModifiers.mShader) { in setupDrawShaderIdentityUniforms()
1927 mDrawModifiers.mShader->setupProgram(mCaches.currentProgram, in setupDrawShaderIdentityUniforms()
2359 bool useScaleTransform = mDrawModifiers.mShader && scaled; in drawBitmap()
[all …]
DDeferredDisplayList.cpp241 if (lhsMod.mShader != rhsMod.mShader) return false; in canMergeWith()
DDisplayListOp.h202 if (state.mDrawModifiers.mShader || in isOpaqueOverBounds()
611 : mShader(shader) {} in SetupShaderOp()
613 renderer.setupShader(mShader); in applyState()
617 OP_LOG("SetupShader, shader %p", mShader); in output()
623 SkiaShader* mShader;
DOpenGLRenderer.h63 SkiaShader* mShader; member
/frameworks/base/docs/html/training/custom-views/
Doptimizing-view.jd143 mPiePaint.setShader(it.mShader);
Dcustom-drawing.jd273 mPiePaint.setShader(it.mShader);