/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/ |
D | FullscreenBlur.java | 76 static void addOffsets(Renderable quad, float advance) { in addOffsets() argument 77 quad.appendSourceParams(new Float4Param("blurOffset0", - advance * 2.5f)); in addOffsets() 78 quad.appendSourceParams(new Float4Param("blurOffset1", - advance * 0.5f)); in addOffsets() 79 quad.appendSourceParams(new Float4Param("blurOffset2", advance * 1.5f)); in addOffsets() 80 quad.appendSourceParams(new Float4Param("blurOffset3", advance * 3.5f)); in addOffsets() 124 Renderable quad = sceneManager.getRenderableQuad("ScreenAlignedQuadS", selectCol); in addBlurPasses() local 125 quad.appendSourceParams(new TextureParam("color", sRenderTargetBlur0Color)); in addBlurPasses() 126 selectColorPass.appendRenderable(quad); in addBlurPasses() 132 quad = sceneManager.getRenderableQuad("ScreenAlignedQuadH", hBlur); in addBlurPasses() 133 quad.appendSourceParams(new TextureParam("color", sRenderTargetBlur2Color)); in addBlurPasses() [all …]
|
D | SimpleAppRS.java | 102 Renderable quad = mScene.appendNewRenderable(); in setupColoredQuad() local 103 quad.setMesh(mSimpleMesh); in setupColoredQuad() 106 quad.appendSourceParams(new Float4Param("color", 0.2f, 0.3f, 0.4f)); in setupColoredQuad() 107 quad.setRenderState(colorRS); in setupColoredQuad() 120 Renderable quad = mScene.appendNewRenderable(); in setupTexturedQuad() local 121 quad.setMesh(mSimpleMesh); in setupTexturedQuad() 125 quad.setTransform(t); in setupTexturedQuad() 128 quad.appendSourceParams(new TextureParam("color", new Texture2D(R.drawable.icon))); in setupTexturedQuad() 129 quad.setRenderState(texRS); in setupTexturedQuad()
|
/frameworks/base/libs/hwui/ |
D | Caches.cpp | 552 uint16_t quad = i * 4; in getRegionMesh() local 554 regionIndices[index ] = quad; // top-left in getRegionMesh() 555 regionIndices[index + 1] = quad + 1; // top-right in getRegionMesh() 556 regionIndices[index + 2] = quad + 2; // bottom-left in getRegionMesh() 557 regionIndices[index + 3] = quad + 2; // bottom-left in getRegionMesh() 558 regionIndices[index + 4] = quad + 1; // top-right in getRegionMesh() 559 regionIndices[index + 5] = quad + 3; // bottom-right in getRegionMesh()
|
D | LayerRenderer.cpp | 192 uint16_t quad = i * 4; in generateMesh() local 194 indices[index ] = quad; // top-left in generateMesh() 195 indices[index + 1] = quad + 1; // top-right in generateMesh() 196 indices[index + 2] = quad + 2; // bottom-left in generateMesh() 197 indices[index + 3] = quad + 2; // bottom-left in generateMesh() 198 indices[index + 4] = quad + 1; // top-right in generateMesh() 199 indices[index + 5] = quad + 3; // bottom-right in generateMesh()
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
D | SceneManager.java | 449 Renderable quad = new Renderable(); in getRenderableQuad() local 450 quad.setTransform(new MatrixTransform()); in getRenderableQuad() 451 quad.setMesh(getScreenAlignedQuad()); in getRenderableQuad() 452 quad.setName(name); in getRenderableQuad() 453 quad.setRenderState(state); in getRenderableQuad() 454 quad.setCullType(1); in getRenderableQuad() 455 return quad; in getRenderableQuad()
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | shader_program.cpp | 231 Quad quad(Point(x, y), in SetSourceRect() local 235 SetSourceRegion(quad); in SetSourceRect() 238 void ShaderProgram::SetSourceRegion(const Quad& quad) { in SetSourceRegion() argument 241 source_coords_[index] = quad.point(i).x(); in SetSourceRegion() 242 source_coords_[index+1] = quad.point(i).y(); in SetSourceRegion() 247 Quad quad(Point(x, y), in SetTargetRect() local 251 SetTargetRegion(quad); in SetTargetRect() 254 void ShaderProgram::SetTargetRegion(const Quad& quad) { in SetTargetRegion() argument 257 target_coords_[index] = (quad.point(i).x() * 2.0) - 1.0; in SetTargetRegion() 258 target_coords_[index+1] = (quad.point(i).y() * 2.0) - 1.0; in SetTargetRegion()
|
D | shader_program.h | 143 void SetSourceRegion(const Quad& quad); 157 void SetTargetRegion(const Quad& quad);
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | RotateFilter.java | 153 Quad quad = new Quad(x0, x1, x2, x3); in updateParameters() local 154 ((ShaderProgram) mProgram).setTargetRegion(quad); in updateParameters()
|
D | StraightenFilter.java | 151 Quad quad = new Quad(p0, p1, p2, p3); in updateParameters() local 152 ((ShaderProgram) mProgram).setSourceRegion(quad); in updateParameters()
|
/frameworks/native/opengl/tests/testViewport/ |
D | README | 7 The program clears the screen to blue, then draws a full screen white quad that
|
/frameworks/rs/scriptc/ |
D | rs_graphics.rsh | 247 * Low performance utility function for drawing a simple quad. Not intended for 271 * Low performance utility function for drawing a textured quad. Not intended
|
/frameworks/base/core/java/android/webkit/ |
D | WebViewClassic.java | 5287 private static Point calculateCaretTop(Point base, QuadF quad) { in calculateCaretTop() argument 5288 float scale = scaleAlongSegment(base.x, base.y, quad.p4, quad.p3); in calculateCaretTop() 5289 int x = Math.round(scaleCoordinate(scale, quad.p1.x, quad.p2.x)); in calculateCaretTop() 5290 int y = Math.round(scaleCoordinate(scale, quad.p1.y, quad.p2.y)); in calculateCaretTop()
|