Home | History | Annotate | Download | only in hwui

Lines Matching full:backdrop

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