Lines Matching refs:hw

138     const sp<const DisplayDevice> hw(mFlinger->getDefaultDisplayDevice());  in onFirstRef()  local
139 updateTransformHint(hw); in onFirstRef()
310 FloatRect Layer::computeCrop(const sp<const DisplayDevice>& hw) const { in computeCrop()
332 activeCrop.intersect(hw->getViewport(), &activeCrop); in computeCrop()
355 uint32_t invTransformOrient = hw->getOrientationTransform(); in computeCrop()
411 const sp<const DisplayDevice>& hw, in setGeometry() argument
419 if (isSecure() && !hw->isSecure()) { in setGeometry()
437 activeCrop.intersect(hw->getViewport(), &activeCrop); in setGeometry()
456 frame.intersect(hw->getViewport(), &frame); in setGeometry()
457 const Transform& tr(hw->getTransform()); in setGeometry()
459 layer.setCrop(computeCrop(hw)); in setGeometry()
477 uint32_t invTransform = hw->getOrientationTransform(); in setGeometry()
506 void Layer::setPerFrameData(const sp<const DisplayDevice>& hw, in setPerFrameData() argument
513 const Transform& tr = hw->getTransform(); in setPerFrameData()
514 Region visible = tr.transform(visibleRegion.intersect(hw->getViewport())); in setPerFrameData()
546 const sp<const DisplayDevice>& hw) in getPosition() argument
560 frame.intersect(hw->getViewport(), &frame); in getPosition()
561 const Transform& tr(hw->getTransform()); in getPosition()
569 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const { in draw() argument
570 onDraw(hw, clip, false); in draw()
573 void Layer::draw(const sp<const DisplayDevice>& hw, in draw() argument
575 onDraw(hw, Region(hw->bounds()), useIdentityTransform); in draw()
578 void Layer::draw(const sp<const DisplayDevice>& hw) const { in draw()
579 onDraw(hw, Region(hw->bounds()), false); in draw()
582 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip, in onDraw() argument
605 under.orSelf( hw->getTransform().transform(layer->visibleRegion) ); in onDraw()
610 clearWithOpenGL(hw, holes, 0, 0, 0, 1); in onDraw()
624 bool blackOutLayer = isProtected() || (isSecure() && !hw->isSecure()); in onDraw()
630 const bool useFiltering = getFiltering() || needsFiltering(hw) || isFixedSize(); in onDraw()
649 uint32_t transform = hw->getOrientationTransform(); in onDraw()
674 drawWithOpenGL(hw, clip, useIdentityTransform); in onDraw()
679 void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw, in clearWithOpenGL() argument
684 computeGeometry(hw, mMesh, false); in clearWithOpenGL()
690 const sp<const DisplayDevice>& hw, const Region& clip) const { in clearWithOpenGL() argument
691 clearWithOpenGL(hw, clip, 0,0,0,0); in clearWithOpenGL()
694 void Layer::drawWithOpenGL(const sp<const DisplayDevice>& hw, in drawWithOpenGL() argument
696 const uint32_t fbHeight = hw->getHeight(); in drawWithOpenGL()
699 computeGeometry(hw, mMesh, useIdentityTransform); in drawWithOpenGL()
780 void Layer::computeGeometry(const sp<const DisplayDevice>& hw, Mesh& mesh, in computeGeometry() argument
785 hw->getTransform() : hw->getTransform() * s.transform); in computeGeometry()
786 const uint32_t hw_h = hw->getHeight(); in computeGeometry()
832 bool Layer::needsFiltering(const sp<const DisplayDevice>& hw) const { in needsFiltering()
833 return mNeedsFiltering || hw->needsFiltering(); in needsFiltering()
1324 void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const { in updateTransformHint()
1330 const Transform& planeTransform(hw->getTransform()); in updateTransformHint()