Lines Matching refs:rect

297             Rectangle rect = parseRect(rectDesc);
300 rectangle.push_back(rect);
368 Rectangle rect;
381 rect.format = format->format;
384 rect.displayFrame = hwcTestParseHwcRect(in, error);
393 rect.sourceDim = HwcTestDim(rect.displayFrame.right
394 - rect.displayFrame.left,
395 rect.displayFrame.bottom
396 - rect.displayFrame.top);
397 rect.sourceCrop.left = 0;
398 rect.sourceCrop.top = 0;
399 rect.sourceCrop.right = rect.sourceDim.width();
400 rect.sourceCrop.bottom = rect.sourceDim.height();
421 rect.transform = 0;
423 rect.transform = HWC_TRANSFORM_FLIP_H;
425 rect.transform = HWC_TRANSFORM_FLIP_V;
427 rect.transform = HWC_TRANSFORM_ROT_90;
429 rect.transform = HWC_TRANSFORM_ROT_180;
431 rect.transform = HWC_TRANSFORM_ROT_270;
442 rect.blend = HWC_BLENDING_NONE;
444 rect.blend = HWC_BLENDING_PREMULT;
446 rect.blend = HWC_BLENDING_COVERAGE;
453 rect.color = hwcTestParseColor(in, error);
459 in >> rect.alpha;
466 rect.sourceDim = hwcTestParseDim(in, error);
473 rect.sourceCrop = hwcTestParseHwcRect(in, error);
487 if (((uint32_t) rect.sourceCrop.left >= rect.sourceDim.width())
488 || ((uint32_t) rect.sourceCrop.right > rect.sourceDim.width())
489 || ((uint32_t) rect.sourceCrop.top >= rect.sourceDim.height())
490 || ((uint32_t) rect.sourceCrop.bottom > rect.sourceDim.height())) {
494 if ((rect.displayFrame.left >= width)
495 || (rect.displayFrame.right > width)
496 || (rect.displayFrame.top >= height)
497 || (rect.displayFrame.bottom > height)) {
501 if ((rect.alpha < 0.0) || (rect.alpha > 1.0)) {
507 rect.texture = new GraphicBuffer(rect.sourceDim.width(),
508 rect.sourceDim.height(),
509 rect.format, texUsage);
510 if ((rv = rect.texture->initCheck()) != NO_ERROR) {
517 hwcTestFillColor(rect.texture.get(), rect.color, rect.alpha);
521 rect.texture.get(), rect.texture->handle, format->desc,
522 rect.sourceDim.width(), rect.sourceDim.height(),
523 string(rect.color).c_str(), rect.alpha);
526 return rect;