Home | History | Annotate | Download | only in hwui

Lines Matching defs:backdrop

144     // #0 - backdrop (content + caption)
145 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop)
147 // Usually the backdrop cannot be seen since it will be entirely covered by the content. While
149 // backdrop against the content and draw the remaining part of it. It will then draw the content
150 // cropped to the backdrop (since that indicates a shrinking of the window).
158 // Backdrop bounds in render target space
159 const Rect backdrop = nodeBounds(*nodes[0]);
163 content.translate(backdrop.left, backdrop.top);
164 if (!content.contains(backdrop) && !nodes[0]->nothingToDraw()) {
165 // Content doesn't entirely overlap backdrop, so fill around content (right/bottom)
167 // Note: in the future, if content doesn't snap to backdrop's left/top, this may need to
169 // the backdrop, so this isn't necessary.
170 if (content.right < backdrop.right) {
171 // draw backdrop to right side of content
172 deferRenderNode(0, 0, Rect(content.right, backdrop.top,
173 backdrop.right, backdrop.bottom), *nodes[0]);
175 if (content.bottom < backdrop.bottom) {
176 // draw backdrop to bottom of content
179 content.right, backdrop.bottom), *nodes[0]);
183 if (!backdrop.isEmpty()) {
184 // content node translation to catch up with backdrop
185 float dx = contentDrawBounds.left - backdrop.left;
186 float dy = contentDrawBounds.top - backdrop.top;
188 Rect contentLocalClip = backdrop;