Lines Matching defs:Layer

41 #include "Layer.h"
55 int32_t Layer::sSequence = 1;
57 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client,
115 void Layer::onFirstRef() {
134 Layer::~Layer() {
147 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& hw,
155 void Layer::onFrameAvailable() {
163 void Layer::onRemoved() {
171 const String8& Layer::getName() const {
175 status_t Layer::setBuffers( uint32_t w, uint32_t h,
202 sp<IBinder> Layer::getHandle() {
206 "Layer::getHandle() has already been called");
220 wp<const Layer> mOwner;
222 Handle(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer)
230 sp<IGraphicBufferProducer> Layer::getBufferQueue() const {
238 Rect Layer::getContentCrop() const {
265 Rect Layer::computeBounds() const {
266 const Layer::State& s(getDrawingState());
275 FloatRect Layer::computeCrop(const sp<const DisplayDevice>& hw) const {
340 void Layer::setGeometry(
405 void Layer::setPerFrameData(const sp<const DisplayDevice>& hw,
421 void Layer::setAcquireFence(const sp<const DisplayDevice>& hw,
444 void Layer::draw(const sp<const DisplayDevice>& hw, const Region& clip) const {
448 void Layer::draw(const sp<const DisplayDevice>& hw) {
452 void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const
457 // the texture has not been created yet, this Layer has
471 const sp<Layer>& layer(drawingLayers[i]);
472 if (layer.get() == static_cast<Layer const*>(this))
548 void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip,
557 void Layer::clearWithOpenGL(
562 void Layer::drawWithOpenGL(
604 void Layer::setFiltering(bool filtering) {
608 bool Layer::getFiltering() const {
619 bool Layer::getOpacityForFormat(uint32_t format) {
637 void Layer::computeGeometry(const sp<const DisplayDevice>& hw, Mesh& mesh) const
639 const Layer::State& s(getDrawingState());
659 bool Layer::isOpaque() const
672 bool Layer::isProtected() const
679 bool Layer::isFixedSize() const {
683 bool Layer::isCropped() const {
687 bool Layer::needsFiltering(const sp<const DisplayDevice>& hw) const {
691 void Layer::setVisibleRegion(const Region& visibleRegion) {
696 void Layer::setCoveredRegion(const Region& coveredRegion) {
701 void Layer::setVisibleNonTransparentRegion(const Region&
711 uint32_t Layer::doTransaction(uint32_t flags) {
714 const Layer::State& s(getDrawingState());
715 const Layer::State& c(getCurrentState());
770 // don't let Layer::doTransaction update the drawing state
784 // this is used by Layer, which special cases resizes.
787 Layer::State& editCurrentState(getCurrentState());
793 flags |= Layer::eVisibleRegion;
812 void Layer::commitTransaction() {
816 uint32_t Layer::getTransactionFlags(uint32_t flags) {
820 uint32_t Layer::setTransactionFlags(uint32_t flags) {
824 bool Layer::setPosition(float x, float y) {
832 bool Layer::setLayer(uint32_t z) {
840 bool Layer::setSize(uint32_t w, uint32_t h) {
848 bool Layer::setAlpha(uint8_t alpha) {
856 bool Layer::setMatrix(const layer_state_t::matrix22_t& matrix) {
863 bool Layer::setTransparentRegionHint(const Region& transparent) {
868 bool Layer::setFlags(uint8_t flags, uint8_t mask) {
877 bool Layer::setCrop(const Rect& crop) {
886 bool Layer::setLayerStack(uint32_t layerStack) {
899 bool Layer::onPreComposition() {
904 void Layer::onPostComposition() {
934 bool Layer::isVisible() const {
935 const Layer::State& s(mDrawingState);
940 Region Layer::latchBuffer(bool& recomputeVisibleRegions)
961 Layer::State& front;
962 Layer::State& current;
964 Reject(Layer::State& front, Layer::State& current,
1130 const Layer::State& s(getDrawingState());
1139 uint32_t Layer::getEffectiveUsage(uint32_t usage) const
1150 void Layer::updateTransformHint(const sp<const DisplayDevice>& hw) const {
1169 void Layer::dump(String8& result, Colorizer& colorizer) const
1171 const Layer::State& s(getDrawingState());
1217 void Layer::dumpStats(String8& result) const {
1221 void Layer::clearStats() {
1225 void Layer::logFrameStats() {
1231 Layer::LayerCleaner::LayerCleaner(const sp<SurfaceFlinger>& flinger,
1232 const sp<Layer>& layer)
1236 Layer::LayerCleaner::~LayerCleaner() {