Lines Matching defs:SurfaceFlinger

75 #include "SurfaceFlinger.h"
111 int64_t SurfaceFlinger::vsyncPhaseOffsetNs;
112 int64_t SurfaceFlinger::sfVsyncPhaseOffsetNs;
113 bool SurfaceFlinger::useContextPriority;
114 int64_t SurfaceFlinger::dispSyncPresentTimeOffset;
115 bool SurfaceFlinger::useHwcForRgbToYuv;
116 uint64_t SurfaceFlinger::maxVirtualDisplaySize;
117 bool SurfaceFlinger::hasSyncFramework;
118 int64_t SurfaceFlinger::maxFrameBufferAcquiredBuffers;
120 SurfaceFlinger::SurfaceFlinger()
155 ALOGI("SurfaceFlinger is starting");
209 void SurfaceFlinger::onFirstRef()
214 SurfaceFlinger::~SurfaceFlinger()
221 void SurfaceFlinger::binderDied(const wp<IBinder>& /* who */)
240 sp<ISurfaceComposerClient> SurfaceFlinger::createConnection() {
244 sp<ISurfaceComposerClient> SurfaceFlinger::createScopedConnection(
257 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName,
261 sp<SurfaceFlinger> flinger;
269 explicit DisplayToken(const sp<SurfaceFlinger>& flinger)
284 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
303 void SurfaceFlinger::createBuiltinDisplayLocked(DisplayDevice::DisplayType type) {
313 sp<IBinder> SurfaceFlinger::getBuiltInDisplay(int32_t id) {
321 void SurfaceFlinger::bootFinished()
348 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) {
504 void SurfaceFlinger::init() {
505 ALOGI( "SurfaceFlinger's main thread ready to run. "
610 int32_t SurfaceFlinger::allocateHwcDisplayId(DisplayDevice::DisplayType type) {
615 void SurfaceFlinger::startBootAnim() {
625 size_t SurfaceFlinger::getMaxTextureSize() const {
629 size_t SurfaceFlinger::getMaxViewportDims() const {
635 bool SurfaceFlinger::authenticateSurfaceTexture(
641 bool SurfaceFlinger::authenticateSurfaceTextureLocked(
647 status_t SurfaceFlinger::getSupportedFrameTimestamps(
662 status_t SurfaceFlinger::getDisplayConfigs(const sp<IBinder>& display,
756 status_t SurfaceFlinger::getDisplayStats(const sp<IBinder>& /* display */,
769 int SurfaceFlinger::getActiveConfig(const sp<IBinder>& display) {
777 void SurfaceFlinger::setActiveConfigInternal(const sp<DisplayDevice>& hw, int mode) {
797 status_t SurfaceFlinger::setActiveConfig(const sp<IBinder>& display, int mode) {
799 SurfaceFlinger& mFlinger;
803 MessageSetActiveConfig(SurfaceFlinger& flinger, const sp<IBinder>& disp,
831 status_t SurfaceFlinger::getDisplayColorModes(const sp<IBinder>& display,
851 android_color_mode_t SurfaceFlinger::getActiveColorMode(const sp<IBinder>& display) {
860 status_t SurfaceFlinger::setActiveColorMode(const sp<IBinder>& display,
880 status_t SurfaceFlinger::clearAnimationFrameStats() {
886 status_t SurfaceFlinger::getAnimationFrameStats(FrameStats* outStats) const {
892 status_t SurfaceFlinger::getHdrCapabilities(const sp<IBinder>& /*display*/,
899 status_t SurfaceFlinger::enableVSyncInjections(bool enable) {
921 status_t SurfaceFlinger::injectVSync(nsecs_t when) {
927 ALOGV("Injecting VSync inside SurfaceFlinger");
935 sp<IDisplayEventConnection> SurfaceFlinger::createDisplayEventConnection(
946 void SurfaceFlinger::waitForEvent() {
950 void SurfaceFlinger::signalTransaction() {
954 void SurfaceFlinger::signalLayerUpdate() {
958 void SurfaceFlinger::signalRefresh() {
962 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg,
967 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg,
976 void SurfaceFlinger::run() {
982 void SurfaceFlinger::enableHardwareVsync() {
986 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
992 void SurfaceFlinger::resyncToHardwareVsync(bool makeAvailable) {
1011 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
1017 void SurfaceFlinger::disableHardwareVsync(bool makeUnavailable) {
1020 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, false);
1030 void SurfaceFlinger::resyncWithRateLimit() {
1037 void SurfaceFlinger::onVSyncReceived(HWComposer* /*composer*/, int type,
1055 void SurfaceFlinger::getCompositorTiming(CompositorTiming* compositorTiming) {
1060 void SurfaceFlinger::onHotplugReceived(HWComposer* /*composer*/, int type, bool connected) {
1083 void SurfaceFlinger::onInvalidateReceived(HWComposer* /*composer*/) {
1087 void SurfaceFlinger::eventControl(int disp, int event, int enabled) {
1092 void SurfaceFlinger::onMessageReceived(int32_t what) {
1114 bool SurfaceFlinger::handleMessageTransaction() {
1123 bool SurfaceFlinger::handleMessageInvalidate() {
1128 void SurfaceFlinger::handleMessageRefresh() {
1141 void SurfaceFlinger::doDebugFlashRegions()
1181 void SurfaceFlinger::preComposition(nsecs_t refreshStartTime)
1195 void SurfaceFlinger::updateCompositorTiming(
1223 void SurfaceFlinger::setCompositorTimingSnapped(nsecs_t vsyncPhase,
1254 void SurfaceFlinger::postComposition(nsecs_t refreshStartTime)
1348 void SurfaceFlinger::rebuildLayerStacks() {
1385 void SurfaceFlinger::setUpHWComposer() {
1493 void SurfaceFlinger::doComposition() {
1515 void SurfaceFlinger::postFramebuffer()
1567 void SurfaceFlinger::handleTransaction(uint32_t transactionFlags)
1596 void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
1727 (SurfaceFlinger::maxVirtualDisplaySize == 0 ||
1728 (width <= static_cast<int>(SurfaceFlinger::maxVirtualDisplaySize) &&
1729 height <= static_cast<int>(SurfaceFlinger::maxVirtualDisplaySize)))) {
1796 // drawing state. However, SurfaceFlinger's own transaction has not
1875 void SurfaceFlinger::updateCursorAsync()
1901 void SurfaceFlinger::commitTransaction()
1926 void SurfaceFlinger::computeVisibleRegions(uint32_t layerStack,
2057 void SurfaceFlinger::invalidateLayerStack(uint32_t layerStack,
2067 bool SurfaceFlinger::handlePageFlip()
2117 void SurfaceFlinger::invalidateHwcGeometry()
2123 void SurfaceFlinger::doDisplayComposition(const sp<const DisplayDevice>& hw,
2180 bool SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const Region& dirty)
2308 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& hw, const Region& region) const {
2314 status_t SurfaceFlinger::addClientLayer(const sp<Client>& client,
2347 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer, bool topLevelOnly) {
2392 uint32_t SurfaceFlinger::peekTransactionFlags() {
2396 uint32_t SurfaceFlinger::getTransactionFlags(uint32_t flags) {
2400 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags) {
2408 void SurfaceFlinger::setTransactionState(
2496 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s)
2546 uint32_t SurfaceFlinger::setClientStateLocked(
2661 status_t SurfaceFlinger::createLayer(
2712 String8 SurfaceFlinger::getUniqueLayerName(const String8& name)
2736 status_t SurfaceFlinger::createNormalLayer(const sp<Client>& client,
2762 status_t SurfaceFlinger::createDimLayer(const sp<Client>& client,
2772 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle)
2786 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer)
2801 void SurfaceFlinger::onInitializeDisplays() {
2828 void SurfaceFlinger::initializeDisplays() {
2830 SurfaceFlinger* flinger;
2832 explicit MessageScreenInitialized(SurfaceFlinger* flinger) : flinger(flinger) { }
2842 void SurfaceFlinger::setPowerModeInternal(const sp<DisplayDevice>& hw,
2910 void SurfaceFlinger::setPowerMode(const sp<IBinder>& display, int mode) {
2912 SurfaceFlinger& mFlinger;
2916 MessageSetPowerMode(SurfaceFlinger& flinger,
2939 status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
2949 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
2958 "SurfaceFlinger appears to be unresponsive (%s [%d]), "
3021 void SurfaceFlinger::listLayersLocked(const Vector<String16>& /* args */,
3029 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index,
3053 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index,
3073 void SurfaceFlinger::logFrameStats() {
3081 void SurfaceFlinger::appendSfConfigString(String8& result) const
3098 void SurfaceFlinger::dumpStaticScreenStats(String8& result) const
3115 void SurfaceFlinger::dumpFrameEventsLocked(String8& result) {
3125 void SurfaceFlinger::recordBufferingStats(const char* layerName,
3143 void SurfaceFlinger::dumpBufferingStats(String8& result) const {
3177 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
3253 * Dump SurfaceFlinger global state
3257 result.append("SurfaceFlinger global state:\n");
3323 SurfaceFlinger::getLayerSortedByZForHwcDisplay(int id) {
3340 bool SurfaceFlinger::startDdmConnection()
3358 status_t SurfaceFlinger::onTransact(
3377 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
3417 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
3532 case 1019: { // Modify SurfaceFlinger's phase offset
3559 void SurfaceFlinger::repaintEverything() {
3681 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
3720 SurfaceFlinger* flinger;
3731 MessageCaptureScreen(SurfaceFlinger* flinger,
3781 void SurfaceFlinger::renderScreenImplLocked(
3854 status_t SurfaceFlinger::captureScreenImplLocked(
4010 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr,
4041 void SurfaceFlinger::State::traverseInZOrder(const LayerVector::Visitor& visitor) const {
4045 void SurfaceFlinger::State::traverseInReverseZOrder(const LayerVector::Visitor& visitor) const {