Home | History | Annotate | Download | only in surfaceflinger

Lines Matching full:surfaceflinger

77 #include "SurfaceFlinger.h"
137 int64_t SurfaceFlinger::vsyncPhaseOffsetNs;
138 int64_t SurfaceFlinger::sfVsyncPhaseOffsetNs;
139 int64_t SurfaceFlinger::dispSyncPresentTimeOffset;
140 bool SurfaceFlinger::useHwcForRgbToYuv;
141 uint64_t SurfaceFlinger::maxVirtualDisplaySize;
142 bool SurfaceFlinger::hasSyncFramework;
143 bool SurfaceFlinger::useVrFlinger;
144 int64_t SurfaceFlinger::maxFrameBufferAcquiredBuffers;
146 bool SurfaceFlinger::hasWideColorDisplay;
212 SurfaceFlinger::SurfaceFlinger(SurfaceFlinger::SkipInitializationTag)
245 SurfaceFlinger::SurfaceFlinger() : SurfaceFlinger(SkipInitialization) {
246 ALOGI("SurfaceFlinger is starting");
296 mPrimaryDispSync.init(SurfaceFlinger::hasSyncFramework, SurfaceFlinger::dispSyncPresentTimeOffset);
346 // Without the override SurfaceFlinger cannot connect to HIDL
355 void SurfaceFlinger::onFirstRef()
360 SurfaceFlinger::~SurfaceFlinger()
364 void SurfaceFlinger::binderDied(const wp<IBinder>& /* who */)
383 sp<ISurfaceComposerClient> SurfaceFlinger::createConnection() {
387 sp<ISurfaceComposerClient> SurfaceFlinger::createScopedConnection(
400 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName,
404 sp<SurfaceFlinger> flinger;
412 explicit DisplayToken(const sp<SurfaceFlinger>& flinger)
427 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
446 sp<IBinder> SurfaceFlinger::getBuiltInDisplay(int32_t id) {
454 void SurfaceFlinger::bootFinished()
489 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) {
637 void SurfaceFlinger::init() {
638 ALOGI( "SurfaceFlinger's main thread ready to run. "
647 std::make_unique<DispSyncSource>(&mPrimaryDispSync, SurfaceFlinger::vsyncPhaseOffsetNs,
655 SurfaceFlinger::sfVsyncPhaseOffsetNs, true, "sf");
741 void SurfaceFlinger::readPersistentProperties() {
755 void SurfaceFlinger::startBootAnim() {
765 size_t SurfaceFlinger::getMaxTextureSize() const {
769 size_t SurfaceFlinger::getMaxViewportDims() const {
775 bool SurfaceFlinger::authenticateSurfaceTexture(
781 bool SurfaceFlinger::authenticateSurfaceTextureLocked(
787 status_t SurfaceFlinger::getSupportedFrameTimestamps(
808 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
918 status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
931 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
945 void SurfaceFlinger
965 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& display, int mode) {
967 SurfaceFlinger& mFlinger;
971 MessageSetActiveConfig(SurfaceFlinger& flinger, const sp<IBinder>& disp,
999 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& display,
1033 ColorMode SurfaceFlinger::getActiveColorMode(const sp<IBinder>& display) {
1041 void SurfaceFlinger::setActiveColorModeInternal(const sp<DisplayDevice>& hw,
1071 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& display,
1074 SurfaceFlinger& mFlinger;
1078 MessageSetActiveColorMode(SurfaceFlinger& flinger, const sp<IBinder>& disp,
1109 status_t SurfaceFlinger::clearAnimationFrameStats() {
1115 status_t SurfaceFlinger::getAnimationFrameStats(FrameStats* outStats) const {
1121 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& display,
1143 status_t SurfaceFlinger::enableVSyncInjections(bool enable) {
1173 status_t SurfaceFlinger::injectVSync(nsecs_t when) {
1181 ALOGV("Injecting VSync inside SurfaceFlinger");
1187 status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const
1202 ALOGE("LayerDebugInfo: SurfaceFlinger unresponsive (%s [%d]) - exit", strerror(-err), err);
1217 sp<IDisplayEventConnection> SurfaceFlinger::createDisplayEventConnection(
1228 void SurfaceFlinger::waitForEvent() {
1232 void SurfaceFlinger::signalTransaction() {
1236 void SurfaceFlinger::signalLayerUpdate() {
1240 void SurfaceFlinger::signalRefresh() {
1245 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg,
1250 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg,
1259 void SurfaceFlinger::run() {
1265 void SurfaceFlinger::enableHardwareVsync() {
1269 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
1275 void SurfaceFlinger::resyncToHardwareVsync(bool makeAvailable) {
1294 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
1300 void SurfaceFlinger::disableHardwareVsync(bool makeUnavailable) {
1303 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, false);
1313 void SurfaceFlinger::resyncWithRateLimit() {
1325 void SurfaceFlinger::onVsyncReceived(int32_t sequenceId,
1354 void SurfaceFlinger::getCompositorTiming(CompositorTiming* compositorTiming) {
1359 void SurfaceFlinger::onHotplugReceived(int32_t sequenceId, hwc2_display_t display,
1385 void SurfaceFlinger::onRefreshReceived(int sequenceId,
1394 void SurfaceFlinger::setVsyncEnabled(int disp, int enabled) {
1402 void SurfaceFlinger::resetDisplayState() {
1413 void SurfaceFlinger::updateVrFlinger() {
1474 void SurfaceFlinger::onMessageReceived(int32_t what) {
1514 bool SurfaceFlinger::handleMessageTransaction() {
1523 bool SurfaceFlinger::handleMessageInvalidate() {
1528 void SurfaceFlinger::handleMessageRefresh() {
1557 void SurfaceFlinger::doDebugFlashRegions()
1603 void SurfaceFlinger::doTracing(const char* where) {
1611 void SurfaceFlinger::logLayerStats() {
1630 void SurfaceFlinger::preComposition(nsecs_t refreshStartTime)
1647 void SurfaceFlinger::updateCompositorTiming(
1675 void SurfaceFlinger::setCompositorTimingSnapped(nsecs_t vsyncPhase,
1706 void SurfaceFlinger::postComposition(nsecs_t refreshStartTime)
1814 void SurfaceFlinger::rebuildLayerStacks() {
1889 Dataspace SurfaceFlinger::getBestDataspace(
1922 void SurfaceFlinger::pickColorMode(const sp<DisplayDevice>& displayDevice,
1959 void SurfaceFlinger::setUpHWComposer() {
2078 void SurfaceFlinger::doComposition() {
2099 void SurfaceFlinger::postFramebuffer()
2165 void SurfaceFlinger::handleTransaction(uint32_t transactionFlags)
2195 DisplayDevice::DisplayType SurfaceFlinger::determineDisplayType(hwc2_display_t display,
2221 void SurfaceFlinger::processDisplayHotplugEventsLocked() {
2265 sp<DisplayDevice> SurfaceFlinger::setupNewDisplayDeviceInternal(
2350 void SurfaceFlinger::processDisplayChangesLocked() {
2487 void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
2535 // drawing state. However, SurfaceFlinger's own transaction has not
2620 void SurfaceFlinger::updateCursorAsync()
2634 void SurfaceFlinger::commitTransaction()
2662 void SurfaceFlinger::computeVisibleRegions(const sp<const DisplayDevice>& displayDevice,
2799 void SurfaceFlinger::invalidateLayerStack(const sp<const Layer>& layer, const Region& dirty) {
2808 bool SurfaceFlinger::handlePageFlip()
2862 void SurfaceFlinger::invalidateHwcGeometry()
2868 void SurfaceFlinger::doDisplayComposition(
2889 bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& displayDevice)
3048 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& displayDevice, const Region& region) const {
3054 status_t SurfaceFlinger::addClientLayer(const sp<Client>& client,
3096 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer, bool topLevelOnly) {
3101 status_t SurfaceFlinger::removeLayerLocked(const Mutex&, const sp<Layer>& layer,
3150 uint32_t SurfaceFlinger::peekTransactionFlags() {
3154 uint32_t SurfaceFlinger::getTransactionFlags(uint32_t flags) {
3158 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags) {
3162 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags,
3172 bool SurfaceFlinger::containsAnyInvalidClientState(const Vector<ComposerState>& states) {
3194 void SurfaceFlinger::setTransactionState(
3280 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s)
3330 uint32_t SurfaceFlinger::setClientStateLocked(const ComposerState& composerState) {
3491 void SurfaceFlinger::setDestroyStateLocked(const ComposerState& composerState) {
3510 status_t SurfaceFlinger::createLayer(
3569 String8 SurfaceFlinger::getUniqueLayerName(const String8& name)
3593 status_t SurfaceFlinger::createBufferLayer(const sp<Client>& client,
3620 status_t SurfaceFlinger::createColorLayer(const sp<Client>& client,
3629 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle)
3643 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer)
3658 void SurfaceFlinger::onInitializeDisplays() {
3686 void SurfaceFlinger::initializeDisplays() {
3688 SurfaceFlinger* flinger;
3690 explicit MessageScreenInitialized(SurfaceFlinger* flinger) : flinger(flinger) { }
3700 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw,
3789 void SurfaceFlinger::setPowerMode(const sp<IBinder>& display, int mode) {
3791 SurfaceFlinger& mFlinger;
3795 MessageSetPowerMode(SurfaceFlinger& flinger,
3819 status_t SurfaceFlinger::doDump(int fd, const Vector<String16>& args, bool asProto)
3830 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
3839 "SurfaceFlinger appears to be unresponsive (%s [%d]), "
3948 void SurfaceFlinger::listLayersLocked(const Vector<String16>& /* args */,
3956 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index,
3980 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index,
4000 void SurfaceFlinger::logFrameStats() {
4008 void SurfaceFlinger::appendSfConfigString(String8& result) const
4024 void SurfaceFlinger::dumpStaticScreenStats(String8& result) const
4041 void SurfaceFlinger::recordBufferingStats(const char* layerName,
4059 void SurfaceFlinger::dumpFrameEventsLocked(String8& result) {
4069 void SurfaceFlinger::dumpBufferingStats(String8& result) const {
4103 void SurfaceFlinger::dumpWideColorInfo(String8& result) const {
4130 LayersProto SurfaceFlinger::dumpProtoInfo(LayerVector::StateSet stateSet) const {
4142 LayersProto SurfaceFlinger::dumpVisibleLayersProtoInfo(int32_t hwcId) const {
4165 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
4251 * Dump SurfaceFlinger global state
4255 result.append("SurfaceFlinger global state:\n");
4343 SurfaceFlinger::getLayerSortedByZForHwcDisplay(int id) {
4360 bool SurfaceFlinger::startDdmConnection()
4378 void SurfaceFlinger::updateColorMatrixLocked() {
4402 status_t SurfaceFlinger::CheckTransactCodeCredentials(uint32_t code) {
4420 ALOGE("Permission Denial: can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
4464 status_t SurfaceFlinger::onTransact(
4481 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
4604 case 1019: { // Modify SurfaceFlinger's phase offset
4690 void SurfaceFlinger::repaintEverything() {
4708 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display, sp<GraphicBuffer>* outBuffer,
4722 auto traverseLayers = std::bind(std::mem_fn(&SurfaceFlinger::traverseLayersInDisplay), this,
4727 status_t SurfaceFlinger::captureLayers(const sp<IBinder>& layerHandleBinder,
4734 LayerRenderArea(SurfaceFlinger* flinger, const sp<Layer>& layer, const Rect crop,
4793 SurfaceFlinger* mFlinger;
4841 status_t SurfaceFlinger::captureScreenCommon(RenderArea& renderArea,
4916 void SurfaceFlinger::renderScreenImplLocked(const RenderArea& renderArea,
5030 status_t SurfaceFlinger::captureScreenImplLocked(const RenderArea& renderArea,
5088 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr,
5113 void SurfaceFlinger::State::traverseInZOrder(const LayerVector::Visitor& visitor) const {
5117 void SurfaceFlinger::State::traverseInReverseZOrder(const LayerVector::Visitor& visitor) const {
5121 void SurfaceFlinger::traverseLayersInDisplay(const sp<const DisplayDevice>& hw, int32_t minLayerZ,