/frameworks/base/graphics/java/android/renderscript/ |
D | ProgramFragmentFixedFunction.java | 77 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 …]
|
D | ProgramVertexFixedFunction.java | 104 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 …]
|
D | Program.java | 75 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()
|
D | ProgramFragment.java | 90 int id = mRS.nProgramFragmentCreate(mShader, texNames, tmp); in create()
|
D | ProgramVertex.java | 151 int id = mRS.nProgramVertexCreate(mShader, texNames, tmp); in create()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | FragmentShader.java | 38 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 …]
|
D | VertexShader.java | 34 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/ |
D | rsdShader.cpp | 174 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 …]
|
D | rsdShader.h | 107 android::String8 mShader; variable
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
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 | CropFilter.java | 40 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()
|
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/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/graphics/java/android/graphics/ |
D | Paint.java | 41 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/ |
D | Paint_Delegate.java | 89 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/ |
D | OpenGLRenderer.cpp | 1821 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 …]
|
D | DeferredDisplayList.cpp | 241 if (lhsMod.mShader != rhsMod.mShader) return false; in canMergeWith()
|
D | DisplayListOp.h | 202 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;
|
D | OpenGLRenderer.h | 63 SkiaShader* mShader; member
|
/frameworks/base/docs/html/training/custom-views/ |
D | optimizing-view.jd | 143 mPiePaint.setShader(it.mShader);
|
D | custom-drawing.jd | 273 mPiePaint.setShader(it.mShader);
|