Lines Matching defs:Layer

19 #define LOG_TAG "Layer"
46 #include "Layer.h"
60 int32_t Layer::sSequence = 1;
62 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client,
102 ALOGV("Creating Layer %s", name.string());
152 void Layer::onFirstRef() {
173 Layer::~Layer() {
194 void Layer::onLayerDisplayed(const sp<Fence>& releaseFence) {
201 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& /* hw */,
210 void Layer::onFrameAvailable(const BufferItem& item) {
241 void Layer::onFrameReplaced(const BufferItem& item) {
266 void Layer::onSidebandStreamChanged() {
276 void Layer::onRemoved() {
284 const String8& Layer::getName() const {
288 status_t Layer::setBuffers( uint32_t w, uint32_t h,
322 class Layer::Handle : public BBinder, public LayerCleaner {
324 Handle(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer)
327 wp<Layer> owner;
330 sp<IBinder> Layer::getHandle() {
334 "Layer::getHandle() has already been called");
341 sp<IGraphicBufferProducer> Layer::getProducer() const {
349 Rect Layer::getContentCrop() const {
376 Rect Layer::computeBounds() const {
377 const Layer::State& s(getDrawingState());
381 Rect Layer::computeBounds(const Region& activeTransparentRegion) const {
382 const Layer::State& s(getDrawingState());
392 FloatRect Layer::computeCrop(const sp<const DisplayDevice>& hw) const {
496 void Layer::setGeometry(const sp<const DisplayDevice>& displayDevice)
498 void Layer::setGeometry(
675 void Layer::forceClientComposition(int32_t hwcId) {
686 void Layer::setPerFrameData(const sp<const DisplayDevice>& displayDevice) {
754 void Layer::setPerFrameData(const sp<const DisplayDevice>& hw,
778 void Layer::updateCursorPosition(const sp<const DisplayDevice>& displayDevice) {
812 void Layer::setAcquireFence(const sp<const DisplayDevice>& /* hw */,
831 Rect Layer::getPosition(
859 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
863 void Layer::draw(const sp<const DisplayDevice>& hw,
868 void Layer::draw(const sp<const DisplayDevice>& hw) const {
872 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip,
878 // the texture has not been created yet, this Layer has
892 const sp<Layer>& layer(drawingLayers[i]);
893 if (layer.get() == static_cast<Layer const*>(this))
971 void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw,
981 void Layer::clearWithOpenGL(
986 void Layer::drawWithOpenGL(const sp<const DisplayDevice>& hw,
1039 void Layer::setCompositionType(int32_t hwcId, HWC2::Composition type,
1062 HWC2::Composition Layer::getCompositionType(int32_t hwcId) const {
1070 void Layer::setClearClientTarget(int32_t hwcId, bool clear) {
1078 bool Layer::getClearClientTarget(int32_t hwcId) const {
1087 uint32_t Layer::getProducerStickyTransform() const {
1098 uint64_t Layer::getHeadFrameNumber() const {
1107 bool Layer::addSyncPoint(const std::shared_ptr<SyncPoint>& point) {
1119 void Layer::setFiltering(bool filtering) {
1123 bool Layer::getFiltering() const {
1134 bool Layer::getOpacityForFormat(uint32_t format) {
1166 void Layer::computeGeometry(const sp<const DisplayDevice>& hw, Mesh& mesh,
1169 const Layer::State& s(getDrawingState());
1208 bool Layer::isOpaque(const Layer::State& s) const
1221 bool Layer::isSecure() const
1223 const Layer::State& s(mDrawingState);
1227 bool Layer::isProtected() const
1234 bool Layer::isFixedSize() const {
1238 bool Layer::isCropped() const {
1242 bool Layer::needsFiltering(const sp<const DisplayDevice>& hw) const {
1246 void Layer::setVisibleRegion(const Region& visibleRegion) {
1251 void Layer::setCoveredRegion(const Region& coveredRegion) {
1256 void Layer::setVisibleNonTransparentRegion(const Region&
1266 void Layer::pushPendingState() {
1275 sp<Layer> handleLayer = handle->owner.promote();
1277 ALOGE("[%s] Unable to promote Layer handle", mName.string());
1300 void Layer::popPendingState(State* stateToCommit) {
1309 bool Layer::applyPendingStates(State* stateToCommit) {
1362 void Layer::notifyAvailableFrames() {
1372 uint32_t Layer::doTransaction(uint32_t flags) {
1376 Layer::State c = getCurrentState();
1381 const Layer::State& s(getDrawingState());
1423 // don't let Layer::doTransaction update the drawing state
1441 // this is used by Layer, which special cases resizes.
1444 Layer::State& editCurrentState(getCurrentState());
1459 flags |= Layer::eVisibleRegion;
1489 void Layer::commitTransaction(const State& stateToCommit) {
1493 uint32_t Layer::getTransactionFlags(uint32_t flags) {
1497 uint32_t Layer::setTransactionFlags(uint32_t flags) {
1501 bool Layer::setPosition(float x, float y, bool immediate) {
1520 bool Layer::setLayer(uint32_t z) {
1529 bool Layer::setSize(uint32_t w, uint32_t h) {
1539 bool Layer::setAlpha(float alpha) {
1541 bool Layer::setAlpha(uint8_t alpha) {
1551 bool Layer::setMatrix(const layer_state_t::matrix22_t& matrix) {
1559 bool Layer::setTransparentRegionHint(const Region& transparent) {
1565 bool Layer::setFlags(uint8_t flags, uint8_t mask) {
1576 bool Layer::setCrop(const Rect& crop) {
1585 bool Layer::setFinalCrop(const Rect& crop) {
1595 bool Layer::setOverrideScalingMode(int32_t scalingMode) {
1603 uint32_t Layer::getEffectiveScalingMode() const {
1610 bool Layer::setLayerStack(uint32_t layerStack) {
1620 void Layer::deferTransactionUntil(const sp<IBinder>& handle,
1633 void Layer::useSurfaceDamage() {
1641 void Layer::useEmptyDamage() {
1649 bool Layer::shouldPresentNow(const DispSync& dispSync) const {
1672 bool Layer::onPreComposition() {
1677 void Layer::onPostComposition() {
1712 void Layer::releasePendingBuffer() {
1717 bool Layer::isVisible() const {
1718 const Layer::State& s(mDrawingState);
1728 Region Layer::latchBuffer(bool& recomputeVisibleRegions)
1763 Layer::State& front;
1764 Layer::State& current;
1770 Reject(Layer::State& front, Layer::State& current,
2061 uint32_t Layer::getEffectiveUsage(uint32_t usage) const
2075 void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const {
2094 void Layer::dump(String8& result, Colorizer& colorizer) const
2096 const Layer::State& s(getDrawingState());
2150 void Layer::dumpFrameStats(String8& result) const {
2154 void Layer::clearFrameStats() {
2158 void Layer::logFrameStats() {
2162 void Layer::getFrameStats(FrameStats* outStats) const {
2166 void Layer::getFenceData(String8* outName, uint64_t* outFrameNumber,
2185 Layer::LayerCleaner::LayerCleaner(const sp<SurfaceFlinger>& flinger,
2186 const sp<Layer>& layer)
2190 Layer::LayerCleaner::~LayerCleaner() {