/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpDispatcherTests.cpp | 38 …ValidatingBakedOpRenderer(RenderState& renderState, std::function<void(const Glop& glop)> validato… in ValidatingBakedOpRenderer() 45 const ClipBase* clip, const Glop& glop) { in ValidatingGlopReceiver() argument 48 vbor->mValidator(glop); in ValidatingGlopReceiver() 50 std::function<void(const Glop& glop)> mValidator; 56 std::function<void(const Glop& glop)> glopVerifier, int expectedGlopCount = 1) { in testUnmergedGlopDispatch() 64 auto glopReceiver = [&glopVerifier, &glopCount, &expectedGlopCount] (const Glop& glop) { in testUnmergedGlopDispatch() argument 66 glopVerifier(glop); in testUnmergedGlopDispatch() 92 auto textureGlopVerifier = [] (const Glop& glop) { in RENDERTHREAD_TEST() argument 94 auto texture = glop.fill.texture.texture; in RENDERTHREAD_TEST() 105 EXPECT_EQ(expectedModelView, glop.transform.modelView) in RENDERTHREAD_TEST() [all …]
|
D | GlopBuilderTests.cpp | 98 std::unique_ptr<Glop> glop(new Glop()); in blackUnitQuadGlop() local 99 glop->blend = { GL_ZERO, GL_ZERO }; in blackUnitQuadGlop() 100 glop->mesh.elementCount = 4; in blackUnitQuadGlop() 101 glop->mesh.primitiveMode = GL_TRIANGLE_STRIP; in blackUnitQuadGlop() 102 glop->mesh.indices.indices = nullptr; in blackUnitQuadGlop() 103 glop->mesh.indices.bufferObject = GL_ZERO; in blackUnitQuadGlop() 104 glop->mesh.vertices = { in blackUnitQuadGlop() 109 glop->transform.modelView.loadIdentity(); in blackUnitQuadGlop() 110 glop->fill.colorEnabled = true; in blackUnitQuadGlop() 111 glop->fill.color.set(Color::Black); in blackUnitQuadGlop() [all …]
|
/frameworks/base/libs/hwui/ |
D | BakedOpDispatcher.cpp | 78 Glop glop; in onMergedBitmapOps() local 79 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedBitmapOps() 88 renderer.renderGlop(nullptr, clip, glop); in onMergedBitmapOps() 184 Glop glop; in onMergedPatchOps() local 185 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in onMergedPatchOps() 194 renderer.renderGlop(nullptr, clip, glop); in onMergedPatchOps() 221 Glop glop; in renderTextShadow() local 222 GlopBuilder(renderer.renderState(), renderer.caches(), &glop) in renderTextShadow() 257 renderer.renderGlop(&shadowBounds, clipState, glop); in renderTextShadow() 354 Glop glop; in renderVertexBuffer() local [all …]
|
D | BakedOpRenderer.h | 80 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);
|
D | GlopBuilder.cpp | 599 void verify(const ProgramDescription& description, const Glop& glop) { in verify() argument 600 if (glop.fill.texture.texture != nullptr) { in verify() 605 || ((glop.mesh.vertices.attribFlags & VertexAttribFlags::TextureCoord) == 0 in verify() 608 glop.fill.texture.texture, in verify() 610 glop.mesh.vertices.attribFlags); in verify() 614 … || ((glop.mesh.vertices.attribFlags & VertexAttribFlags::TextureCoord) != 0)), in verify() 617 glop.mesh.vertices.attribFlags); in verify() 620 if ((glop.mesh.vertices.attribFlags & VertexAttribFlags::Alpha) in verify() 621 && glop.mesh.vertices.bufferObject) { in verify() 625 if (description.hasTextureTransform != (glop.fill.texture.textureTransform != nullptr)) { in verify() [all …]
|
D | OpenGLRenderer.cpp | 788 Glop glop; in drawTextureLayer() local 789 GlopBuilder(mRenderState, mCaches, &glop) in drawTextureLayer() 796 renderGlop(glop); in drawTextureLayer() 800 Glop glop; in composeLayerRectSwapped() local 801 GlopBuilder(mRenderState, mCaches, &glop) in composeLayerRectSwapped() 809 renderGlop(glop); in composeLayerRectSwapped() 821 Glop glop; in composeLayerRect() local 822 GlopBuilder(mRenderState, mCaches, &glop) in composeLayerRect() 829 renderGlop(glop); in composeLayerRect() 962 Glop glop; in composeLayerRegion() local [all …]
|
D | BakedOpRenderer.cpp | 145 Glop glop; in endFrame() local 146 GlopBuilder(mRenderState, mCaches, &glop) in endFrame() 153 renderGlop(nullptr, &overdrawClip, glop); in endFrame() 214 Glop glop; in drawRects() local 215 GlopBuilder(mRenderState, mCaches, &glop) in drawRects() 222 mRenderState.render(glop, mRenderTarget.orthoMatrix); in drawRects() 231 Glop glop; in setupStencilQuads() local 232 GlopBuilder(mRenderState, mCaches, &glop) in setupStencilQuads() 239 mRenderState.render(glop, mRenderTarget.orthoMatrix); in setupStencilQuads() 349 const Glop& glop) { in renderGlopImpl() argument [all …]
|
D | Readback.cpp | 166 Glop glop; in copySurfaceInto() local 167 GlopBuilder(renderState, caches, &glop) in copySurfaceInto() 176 renderState.render(glop, ortho); in copySurfaceInto()
|
D | FontRenderer.cpp | 69 Glop glop; in draw() local 71 GlopBuilder(renderer->renderState(), renderer->caches(), &glop) in draw() 79 renderer->renderGlop(nullptr, clip, glop); in draw() 81 GlopBuilder(renderer->mRenderState, renderer->mCaches, &glop) in draw() 88 renderer->renderGlop(glop); in draw()
|
D | GlopBuilder.h | 111 static void dump(const Glop& glop);
|
D | OpenGLRenderer.h | 467 void renderGlop(const Glop& glop, GlopRenderType type = GlopRenderType::Standard);
|
/frameworks/base/libs/hwui/renderstate/ |
D | RenderState.cpp | 238 void RenderState::render(const Glop& glop, const Matrix4& orthoMatrix) { in render() argument 239 const Glop::Mesh& mesh = glop.mesh; in render() 242 const Glop::Fill& fill = glop.fill; in render() 256 glop.transform.modelView, in render() 257 glop.transform.meshTransform(), in render() 258 glop.transform.transformFlags & TransformFlags::OffsetByFudgeFactor); in render() 273 if (glop.roundRectClipState) { in render() 275 const RoundRectClipState* state = glop.roundRectClipState; in render() 353 blend().setFactors(glop.blend.src, glop.blend.dst); in render()
|
D | RenderState.h | 93 void render(const Glop& glop, const Matrix4& orthoMatrix);
|