Home | History | Annotate | Download | only in skia

Lines Matching full:backdrop

377         // #0 - backdrop (content + caption)
378 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop)
380 // Usually the backdrop cannot be seen since it will be entirely covered by the content.
384 // backdrop against the content and draw the remaining part of it. It will then draw the
386 // cropped to the backdrop (since that indicates a shrinking of the window).
394 // Backdrop bounds in render target space
395 const Rect backdrop = nodeBounds(*nodes[0]);
400 content.translate(backdrop.left, backdrop.top);
401 if (!content.contains(backdrop) && !nodes[0]->nothingToDraw()) {
402 // Content doesn't entirely overlap backdrop, so fill around content (right/bottom)
404 // Note: in the future, if content doesn't snap to backdrop's left/top, this may need to
407 // the backdrop, so this isn't necessary.
409 if (content.right < backdrop.right) {
410 // draw backdrop to right side of content
412 canvas->clipRect(SkRect::MakeLTRB(content.right, backdrop.top, backdrop.right,
413 backdrop.bottom));
416 if (content.bottom < backdrop.bottom) {
417 // draw backdrop to bottom of content
421 backdrop.bottom));
427 if (!backdrop.isEmpty()) {
428 // content node translation to catch up with backdrop
429 float dx = backdrop.left - contentDrawBounds.left;
430 float dy = backdrop.top - contentDrawBounds.top;
436 backdrop.getWidth(), backdrop.getHeight());