/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | ScaleDrawable.java | 221 protected void onBoundsChange(Rect bounds) { argument 227 int w = bounds.width(); 233 int h = bounds.height(); 240 Gravity.apply(mState.mGravity, w, h, bounds, r, layoutDirection);
|
H A D | ShapeDrawable.java | 332 protected void onBoundsChange(Rect bounds) { argument 333 super.onBoundsChange(bounds); 623 // a bitmap to fill the bounds without needing any other special casing.
|
H A D | VectorDrawable.java | 294 // We will offset the bounds for drawBitmap, so copyBounds() here instead 311 // Invalid canvas matrix or drawable bounds. This would not affect existing bitmap 1803 long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache); 1802 nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) argument
|
/frameworks/base/libs/hwui/ |
H A D | BakedOpDispatcher.cpp | 38 static void storeTexturedRect(TextureVertex* vertices, const Rect& bounds, const Rect& texCoord) { argument 39 vertices[0] = { bounds.left, bounds.top, texCoord.left, texCoord.top }; 40 vertices[1] = { bounds.right, bounds.top, texCoord.right, texCoord.top }; 41 vertices[2] = { bounds.left, bounds.bottom, texCoord.left, texCoord.bottom }; 42 vertices[3] = { bounds.right, bounds.bottom, texCoord.right, texCoord.bottom }; 65 // calculate unclipped bounds, sinc 391 SkRect bounds = op.unmappedBounds.toSkRect(); local [all...] |
H A D | BakedOpRenderer.cpp | 252 Rect bounds = tr.getBounds(); local 254 // If rectToRect, can simply map bounds before storing verts 255 transform.mapRect(bounds); 256 bounds.doIntersect(clip->rect); 257 if (bounds.isEmpty()) { 262 rectangleVertices.push_back(Vertex{bounds.left, bounds.top}); 263 rectangleVertices.push_back(Vertex{bounds.right, bounds.top}); 264 rectangleVertices.push_back(Vertex{bounds [all...] |
H A D | BakedOpState.cpp | 24 static int computeClipSideFlags(const Rect& clip, const Rect& bounds) { argument 26 if (clip.left > bounds.left) clipSideFlags |= OpClipSideFlags::Left; 27 if (clip.top > bounds.top) clipSideFlags |= OpClipSideFlags::Top; 28 if (clip.right < bounds.right) clipSideFlags |= OpClipSideFlags::Right; 29 if (clip.bottom < bounds.bottom) clipSideFlags |= OpClipSideFlags::Bottom; 59 // Rejected based on either empty clip, or bounds not intersecting with clip 116 // bounds are empty, so op is rejected 139 // bounds are empty, so op is rejected
|
H A D | CanvasState.cpp | 225 Rect bounds; local 227 if (!outline->getAsRoundRect(&bounds, &radius)) return; // only RR supported 232 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); 235 setClippingRoundRect(allocator, bounds, radius, false); 253 * Calculates whether content drawn within the passed bounds would be outside of, or intersect with
|
H A D | ClipArea.cpp | 55 TransformedRectangle::TransformedRectangle(const Rect& bounds, argument 57 : mBounds(bounds) 108 void RectangleList::set(const Rect& bounds, const Matrix4& transform) { argument 110 mTransformedRectangles[0] = TransformedRectangle(bounds, transform); 113 bool RectangleList::intersectWith(const Rect& bounds, argument 115 TransformedRectangle newRectangle(bounds, transform); 139 Rect bounds; local 143 bounds = tr.transformedBounds(); 145 bounds.doIntersect(tr.transformedBounds()); 148 return bounds; 151 pathFromTransformedRectangle(const Rect& bounds, const Matrix4& transform) argument [all...] |
H A D | DeferredDisplayList.cpp | 60 virtual bool coversBounds(const Rect& bounds) { return false; } argument 73 // NOTE: ignore empty bounds special case, since we don't merge across those ops 85 DEFER_LOGD("op intersects with op %p with bounds %f %f %f %f:", mOps[i].op, 111 const Rect& bounds = state->mBounds; variable 116 renderer.drawScreenSpaceColorRect(bounds.left, bounds.top, bounds.right, bounds.bottom, 124 virtual bool coversBounds(const Rect& bounds) override { 125 if (CC_LIKELY(!mAllOpsOpaque || !mBounds.contains(bounds) || coun [all...] |
H A D | DeferredDisplayList.h | 52 // global op bounds, mapped by mMatrix to be in screen space coordinates, clipped 58 int mClipSideFlags; // specifies which sides of the bounds are clipped, unclipped if cleared 80 DeferredDisplayList(const Rect& bounds) argument 81 : mBounds(bounds) { 147 // layer space bounds of rendering 194 bool opaqueOverBounds; // opaque over bounds in DeferredDisplayState - can skip ops below
|
H A D | DisplayListCanvas.cpp | 180 Rect bounds = mState.getLocalClipBounds(); local 181 *outRect = SkRect::MakeLTRB(bounds.left, bounds.top, bounds.right, bounds.bottom); 190 SkRect bounds = path.getBounds(); local 191 return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds 338 SkRect bounds; local [all...] |
H A D | DisplayListOp.h | 145 const std::vector<OpStatePair>& ops, const Rect& bounds) { 166 * Query the conservative, local bounds (unmapped) bounds of the op. 168 * returns true if bounds exist 192 // Helper method for determining op opaqueness. Assumes op fills its bounds in local 195 // ensure that local bounds cover mapped bounds 233 // Calculates bounds as smallest rect encompassing all points 246 // default empty constructor for bounds, to be overridden in child constructor body 567 SkRect bounds variable 144 multiDraw(OpenGLRenderer& renderer, Rect& dirty, const std::vector<OpStatePair>& ops, const Rect& bounds) argument 588 SkIRect bounds = mRegion->getBounds(); variable 1113 DrawVectorDrawableOp(VectorDrawableRoot* tree, const SkRect& bounds) argument 1310 DrawTextOp(const glyph_t* text, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds) argument 1342 Rect bounds; variable 1343 getLocalBounds(bounds); variable [all...] |
H A D | FontRenderer.cpp | 78 // Note: don't pass dirty bounds here, so user must manage passing dirty bounds to renderer 579 Rect bounds; local 580 mCurrentFont->measure(paint, glyphs, numGlyphs, &bounds, positions); 583 uint32_t paddedWidth = (uint32_t) (bounds.right - bounds.left) + 2 * intRadius; 584 uint32_t paddedHeight = (uint32_t) (bounds.top - bounds.bottom) + 2 * intRadius; 605 int penX = intRadius - bounds.left; 606 int penY = intRadius - bounds 630 initRender(const Rect* clip, Rect* bounds, TextDrawFunctor* functor) argument 656 renderPosText(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, int x, int y, const float* positions, Rect* bounds, TextDrawFunctor* functor, bool forceFinish) argument 674 renderTextOnPath(const SkPaint* paint, const Rect* clip, const glyph_t* glyphs, int numGlyphs, const SkPath* path, float hOffset, float vOffset, Rect* bounds, TextDrawFunctor* functor) argument [all...] |
H A D | FrameBuilder.cpp | 145 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop) 154 // Usually the contents bounds should be mContentDrawBounds - however - we will 156 // If there is no content bounds we ignore the layering as stated above and start with 2. 158 // Backdrop bounds in render target space 161 // Bounds that content will fill in render target space (note content node bounds may be bigger) 241 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 269 Rect bounds; local 270 properties.getRevealClip().getBounds(&bounds); 272 bounds, properties.getRevealClip().getRadius()); 559 * for paint's style on the bounds bein [all...] |
H A D | Glop.h | 176 Rect bounds; // TODO: remove for HWUI_NEW_OPS member in struct:android::uirenderer::Glop
|
H A D | Layer.h | 94 const android::Rect& bounds = region.getBounds(); local 95 regionRect.set(bounds.leftTop().x, bounds.leftTop().y, 96 bounds.rightBottom().x, bounds.rightBottom().y);
|
H A D | LayerBuilder.cpp | 55 ALOGD(" Batch %p, id %d, merging %d, count %d, bounds " RECT_STRING, 85 * Helper for determining if a new op can merge with a MergingDrawBatch based on their bounds 86 * and clip side flags. Positive bounds delta means new bounds fit in old. 93 // if current is clipped, we must be able to fit new bounds in current 96 // if new is clipped, we must be able to fit current bounds in new 150 * Exploits the fact that if a op or batch is clipped on a side, its bounds will equal its 189 // Therefore it's safe to simply always merge flags, and use the bounds as the clip rect. 264 Rect bounds = mClearRects[0]; local 266 bounds [all...] |
H A D | LayerRenderer.cpp | 438 Rect bounds; local 439 bounds.set(0.0f, 0.0f, bitmap->width(), bitmap->height()); 440 renderer.drawTextureLayer(layer, bounds);
|
H A D | OpenGLRenderer.cpp | 486 void OpenGLRenderer::calculateLayerBoundsAndClip(Rect& bounds, Rect& clip, bool fboLayer) { argument 487 const Rect untransformedBounds(bounds); 489 currentTransform()->mapRect(bounds); 491 // Layers only make sense if they are in the framebuffer's bounds 492 bounds.doIntersect(mState.currentRenderTargetClip()); 493 if (!bounds.isEmpty()) { 495 bounds.snapToPixelBoundaries(); 498 // need to make sure the layer does not extend outside the bounds 503 bounds.doIntersect(previousViewport); 504 if (!bounds 519 updateSnapshotIgnoreForLayer(const Rect& bounds, const Rect& clip, bool fboLayer, int alpha) argument 675 createFboLayer(Layer* layer, Rect& bounds, Rect& clip) argument 1039 dirtyLayerUnchecked(Rect& bounds, Region* region) argument 1069 const Rect& bounds = mLayers[i]; local 1247 Rect bounds = tr.getBounds(); local 1460 drawBitmaps(const SkBitmap* bitmap, AssetAtlas::Entry* entry, int bitmapCount, TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint) argument 1743 const Rect& bounds = buffer.getBounds(); local 1761 const Rect& bounds = buffer.getBounds(); local 2095 drawText(const glyph_t* glyphs, int bytesCount, int count, float x, float y, const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, DrawOpMode drawOpMode) argument [all...] |
H A D | OpenGLRenderer.h | 172 TextureVertex* vertices, bool pureTranslate, const Rect& bounds, const SkPaint* paint); 197 const float* positions, const SkPaint* paint, float totalAdvance, const Rect& bounds, 209 * additionally map the state's bounds from local to window coordinates. 399 bool quickRejectSetupScissor(const Rect& bounds, const SkPaint* paint = nullptr) { argument 400 return quickRejectSetupScissor(bounds.left, bounds.top, 401 bounds.right, bounds.bottom, paint); 416 * Marks the specified region as dirty at the specified bounds. 418 void dirtyLayerUnchecked(Rect& bounds, Regio [all...] |
H A D | PathCache.cpp | 131 const SkRect& bounds = path->getBounds(); local 132 PathCache::computeBounds(bounds, paint, left, top, offset, width, height); 135 void PathCache::computeBounds(const SkRect& bounds, const SkPaint* paint, argument 137 const float pathWidth = std::max(bounds.width(), 1.0f); 138 const float pathHeight = std::max(bounds.height(), 1.0f); 140 left = bounds.fLeft; 141 top = bounds.fTop;
|
H A D | PathTessellator.cpp | 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(), 735 SkRect bounds = path.getBounds(); local 736 if (!bounds.isEmpty()) { 737 threshInvScaleX *= bounds.width() / (bounds.width() + paint->getStrokeWidth()); 738 threshInvScaleY *= bounds 793 instanceVertices(VertexBuffer& srcBuffer, VertexBuffer& dstBuffer, const float* points, int count, Rect& bounds) argument 868 Rect bounds; local [all...] |
H A D | RecordingCanvas.cpp | 132 // determine clipped bounds relative to previous viewport. 149 // Map visible bounds back to layer space, and intersect with parameter bounds 159 // layerBounds is in original bounds space, but clipped by current recording clip 230 SkRect bounds = path.getBounds(); local 231 return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); 254 SkRect bounds; local [all...] |
H A D | RenderNode.cpp | 495 // changes in isRenderable or, in the future, bounds 603 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 642 Rect bounds; local 643 mProperties.getRevealClip().getBounds(&bounds); 644 renderer.setClippingRoundRect(handler.allocator(), bounds, mProperties.getRevealClip().getRadius());
|
H A D | RenderProperties.cpp | 131 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer 160 Rect bounds; local 161 getRevealClip().getBounds(&bounds); 162 ALOGD("%*s(Clip to reveal clip with bounds %.2f %.2f %.2f %.2f)", level * 2, "", 163 RECT_ARGS(bounds)); 171 ALOGD("%*s(Clip to outline with bounds %.2f %.2f %.2f %.2f)", level * 2, "",
|