Home | History | Annotate | Download | only in surfaceflinger

Lines Matching refs:Transform

104     mCurrentState.transform.set(0, 0);
289 // a viewport clipping and a window transform. we should use floating point to fix this.
296 activeCrop = s.transform.transform(activeCrop);
298 activeCrop = s.transform.inverse().transform(activeCrop);
308 // Transform the window crop to match the buffer coordinate system,
309 // which means using the inverse of the current transform set on the
320 const Rect winCrop = activeCrop.transform(
353 // this gives us only the "orientation" component of the transform
361 // apply the layer's transform, followed by the display's global transform
362 // here we're guaranteed that the layer's transform preserves rects
363 Rect frame(s.transform.transform(computeBounds()));
365 const Transform& tr(hw->getTransform());
366 layer.setFrame(tr.transform(frame));
378 const Transform bufferOrientation(mCurrentTransform);
379 Transform transform(tr * s.transform * bufferOrientation);
383 * the code below applies the display's inverse transform to the buffer
386 // calculate the inverse transform
391 // and apply to the current transform
392 transform = transform * Transform(invTransform);
395 // this gives us only the "orientation" component of the transform
396 const uint32_t orientation = transform.getOrientation();
397 if (orientation & Transform::ROT_INVALID) {
412 const Transform& tr = hw->getTransform();
413 Region visible = tr.transform(visibleRegion.intersect(hw->getViewport()));
474 under.orSelf( hw->getTransform().transform(layer->visibleRegion) );
509 * the code below applies the display's inverse transform to the texture transform
512 // create a 4x4 transform matrix from the display transform flags
518 uint32_t transform = hw->getOrientationTransform();
519 if (transform & NATIVE_WINDOW_TRANSFORM_ROT_90)
521 if (transform & NATIVE_WINDOW_TRANSFORM_FLIP_H)
523 if (transform & NATIVE_WINDOW_TRANSFORM_FLIP_V)
640 const Transform tr(hw->getTransform() * s.transform);
650 position[0] = tr.transform(win.left, win.top);
651 position[1] = tr.transform(win.left, win.bottom);
652 position[2] = tr.transform(win.right, win.bottom);
653 position[3] = tr.transform(win.right, win.top);
802 const uint8_t type = c.transform.getType();
803 mNeedsFiltering = (!c.transform.preserveRects() ||
804 (type >= Transform::SCALE));
825 if (mCurrentState.transform.tx() == x && mCurrentState.transform.ty() == y)
828 mCurrentState.transform.set(x, y);
858 mCurrentState.transform.set(
981 if (item.mTransform & Transform::ROT_90) {
1103 const uint32_t transform(mSurfaceFlingerConsumer->getCurrentTransform());
1106 (transform != mCurrentTransform) ||
1110 mCurrentTransform = transform;
1133 // transform the dirty region to window-manager space
1134 outDirtyRegion = (s.transform.transform(dirtyRegion));
1153 // The transform hint is used to improve performance, but we can
1154 // only have a single transform hint, it cannot
1156 const Transform& planeTransform(hw->getTransform());
1158 if (orientation & Transform::ROT_INVALID) {
1188 s.layerStack, s.z, s.transform.tx(), s.transform.ty(), s.active.w, s.active.h,
1193 s.transform[0][0], s.transform[0][1],
1194 s.transform[1][0], s.transform[1][1],