Home | History | Annotate | Download | only in hwui

Lines Matching full:bounds

165      * Outset the bounds of point data (for line endpoints or points) to account for stroke
168 * bounds are in pre-scaled space.
170 void expandBoundsForStroke(Rect* bounds) const {
173 bounds->outset(fabs(inverseScaleX) * (0.5f + Vertex::GeometryFudgeFactor()),
177 bounds->outset(halfStrokeWidth + fabs(inverseScaleX) * Vertex::GeometryFudgeFactor(),
737 SkRect bounds = path.getBounds();
738 if (!bounds.isEmpty()) {
739 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth());
740 threshInvScaleY *= bounds.height() / (bounds.height() + paint->getStrokeWidth());
787 Rect bounds(path.getBounds());
788 paintInfo.expandBoundsForStroke(&bounds);
789 vertexBuffer.setBounds(bounds);
794 const float* points, int count, Rect& bounds) {
795 bounds.set(points[0], points[1], points[0], points[1]);
802 bounds.expandToCoverVertex(points[i + 0], points[i + 1]);
832 bounds;
838 instanceVertices<Vertex>(tempBuffer, vertexBuffer, points, count, bounds);
842 instanceVertices<AlphaVertex>(tempBuffer, vertexBuffer, points, count, bounds);
845 // expand bounds from vertex coords to pixel data
846 paintInfo.expandBoundsForStroke(&bounds);
847 vertexBuffer.setBounds(bounds);
871 Rect bounds;
872 bounds.set(points[0], points[1], points[0], points[1]);
883 // calculate bounds
884 bounds.expandToCoverVertex(tempVerticesData[0].x, tempVerticesData[0].y);
885 bounds.expandToCoverVertex(tempVerticesData[1].x, tempVerticesData[1].y);
895 // expand bounds from vertex coords to pixel data
896 paintInfo.expandBoundsForStroke(&bounds);
897 vertexBuffer.setBounds(bounds);