Home
last modified time | relevance | path

Searched refs:glop (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DBakedOpDispatcherTests.cpp39 …ValidatingBakedOpRenderer(RenderState& renderState, std::function<void(const Glop& glop)> validato… in ValidatingBakedOpRenderer()
46 const ClipBase* clip, const Glop& glop) { in ValidatingGlopReceiver() argument
49 vbor->mValidator(glop); in ValidatingGlopReceiver()
51 std::function<void(const Glop& glop)> mValidator;
57 std::function<void(const Glop& glop)> glopVerifier, int expectedGlopCount = 1) { in testUnmergedGlopDispatch()
65 auto glopReceiver = [&glopVerifier, &glopCount, &expectedGlopCount] (const Glop& glop) { in testUnmergedGlopDispatch() argument
67 glopVerifier(glop); in testUnmergedGlopDispatch()
91 auto textureGlopVerifier = [] (const Glop& glop) { in RENDERTHREAD_OPENGL_PIPELINE_TEST() argument
93 auto texture = glop.fill.texture.texture; in RENDERTHREAD_OPENGL_PIPELINE_TEST()
104 EXPECT_EQ(expectedModelView, glop.transform.modelView) in RENDERTHREAD_OPENGL_PIPELINE_TEST()
[all …]
DGlopBuilderTests.cpp99 std::unique_ptr<Glop> glop(new Glop()); in blackUnitQuadGlop() local
100 glop->blend = { GL_ZERO, GL_ZERO }; in blackUnitQuadGlop()
101 glop->mesh.elementCount = 4; in blackUnitQuadGlop()
102 glop->mesh.primitiveMode = GL_TRIANGLE_STRIP; in blackUnitQuadGlop()
103 glop->mesh.indices.indices = nullptr; in blackUnitQuadGlop()
104 glop->mesh.indices.bufferObject = GL_ZERO; in blackUnitQuadGlop()
105 glop->mesh.vertices = { in blackUnitQuadGlop()
110 glop->transform.modelView.loadIdentity(); in blackUnitQuadGlop()
111 glop->fill.colorEnabled = true; in blackUnitQuadGlop()
112 glop->fill.color.set(Color::Black); in blackUnitQuadGlop()
[all …]
/frameworks/base/libs/hwui/
DBakedOpDispatcher.cpp74 Glop glop; in onMergedBitmapOps() local
75 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedBitmapOps()
84 renderer.renderGlop(nullptr, clip, glop); in onMergedBitmapOps()
178 Glop glop; in onMergedPatchOps() local
179 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedPatchOps()
188 renderer.renderGlop(nullptr, clip, glop); in onMergedPatchOps()
215 Glop glop; in renderTextShadow() local
216 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in renderTextShadow()
251 renderer.renderGlop(&shadowBounds, clipState, glop); in renderTextShadow()
348 Glop glop; in renderVertexBuffer() local
[all …]
DBakedOpRenderer.h80 void renderGlop(const BakedOpState& state, const Glop& glop) { in renderGlop() argument
83 glop); in renderGlop()
87 void renderGlop(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop) { in renderGlop() argument
88 mGlopReceiver(*this, dirtyBounds, clip, glop); in renderGlop()
107 const ClipBase* clip, const Glop& glop) { in DefaultGlopReceiver() argument
108 renderer.renderGlopImpl(dirtyBounds, clip, glop); in DefaultGlopReceiver()
110 void renderGlopImpl(const Rect* dirtyBounds, const ClipBase* clip, const Glop& glop);
DGlopBuilder.cpp571 void verify(const ProgramDescription& description, const Glop& glop) { in verify() argument
572 if (glop.fill.texture.texture != nullptr) { in verify()
577 || ((glop.mesh.vertices.attribFlags & VertexAttribFlags::TextureCoord) == 0 in verify()
580 glop.fill.texture.texture, in verify()
582 glop.mesh.vertices.attribFlags); in verify()
586 … || ((glop.mesh.vertices.attribFlags & VertexAttribFlags::TextureCoord) != 0)), in verify()
589 glop.mesh.vertices.attribFlags); in verify()
592 if ((glop.mesh.vertices.attribFlags & VertexAttribFlags::Alpha) in verify()
593 && glop.mesh.vertices.bufferObject) { in verify()
597 if (description.hasTextureTransform != (glop.fill.texture.textureTransform != nullptr)) { in verify()
[all …]
DBakedOpRenderer.cpp145 Glop glop; in endFrame() local
146 GlopBuilder(mRenderState, mCaches, &glop) in endFrame()
153 renderGlop(nullptr, &overdrawClip, glop); in endFrame()
210 Glop glop; in drawRects() local
211 GlopBuilder(mRenderState, mCaches, &glop) in drawRects()
218 mRenderState.render(glop, mRenderTarget.orthoMatrix); in drawRects()
227 Glop glop; in setupStencilQuads() local
228 GlopBuilder(mRenderState, mCaches, &glop) in setupStencilQuads()
235 mRenderState.render(glop, mRenderTarget.orthoMatrix); in setupStencilQuads()
345 const Glop& glop) { in renderGlopImpl() argument
[all …]
DOpenGLReadback.cpp218 Glop glop; in copyTextureInto() local
219 GlopBuilder(renderState, caches, &glop) in copyTextureInto()
228 renderState.render(glop, ortho); in copyTextureInto()
DGlopBuilder.h113 static void dump(const Glop& glop);
DFontRenderer.cpp66 Glop glop; in draw() local
67 GlopBuilder(renderer->renderState(), renderer->caches(), &glop) in draw()
76 renderer->renderGlop(nullptr, clip, glop); in draw()
/frameworks/base/libs/hwui/renderstate/
DRenderState.cpp260 void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { in render() argument
261 const Glop::Mesh& mesh = glop.mesh; in render()
264 const Glop::Fill& fill = glop.fill; in render()
278 glop.transform.modelView, in render()
279 glop.transform.meshTransform(), in render()
280 glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor); in render()
295 if (glop.roundRectClipState) { in render()
297 const RoundRectClipState* state = glop.roundRectClipState; in render()
409 blend().setFactors(glop.blend.src, glop.blend.dst); in render()
DRenderState.h107 void render(const Glop& glop, const Matrix4& orthoMatrix);