Lines Matching refs:SurfaceFlinger
67 #include "SurfaceFlinger.h"
100 // event is when SurfaceFlinger and Choreographer-based applications run each
107 // minimum latency of two vsync periods because the app and SurfaceFlinger
120 // This is the phase offset at which SurfaceFlinger's composition runs.
132 SurfaceFlinger::SurfaceFlinger()
157 ALOGI("SurfaceFlinger is starting");
180 void SurfaceFlinger::onFirstRef()
185 SurfaceFlinger::~SurfaceFlinger()
192 void SurfaceFlinger::binderDied(const wp<IBinder>& who)
203 sp<ISurfaceComposerClient> SurfaceFlinger::createConnection()
214 sp<IBinder> SurfaceFlinger::createDisplay(const String8& displayName,
218 sp<SurfaceFlinger> flinger;
226 DisplayToken(const sp<SurfaceFlinger>& flinger)
242 void SurfaceFlinger::destroyDisplay(const sp<IBinder>& display) {
261 void SurfaceFlinger::createBuiltinDisplayLocked(DisplayDevice::DisplayType type) {
271 sp<IBinder> SurfaceFlinger::getBuiltInDisplay(int32_t id) {
279 sp<IGraphicBufferAlloc> SurfaceFlinger::createGraphicBufferAlloc()
285 void SurfaceFlinger::bootFinished()
305 void SurfaceFlinger::deleteTextureAsync(uint32_t texture) {
321 status_t SurfaceFlinger::selectConfigForAttribute(
407 status_t SurfaceFlinger::selectEGLConfig(EGLDisplay display, EGLint nativeVisualId,
508 void SurfaceFlinger::init() {
509 ALOGI( "SurfaceFlinger's main thread ready to run. "
630 int32_t SurfaceFlinger::allocateHwcDisplayId(DisplayDevice::DisplayType type) {
635 void SurfaceFlinger::startBootAnim() {
641 size_t SurfaceFlinger::getMaxTextureSize() const {
645 size_t SurfaceFlinger::getMaxViewportDims() const {
651 bool SurfaceFlinger::authenticateSurfaceTexture(
658 status_t SurfaceFlinger::getDisplayInfo(const sp<IBinder>& display, DisplayInfo* info) {
732 sp<IDisplayEventConnection> SurfaceFlinger::createDisplayEventConnection() {
738 void SurfaceFlinger::waitForEvent() {
742 void SurfaceFlinger::signalTransaction() {
746 void SurfaceFlinger::signalLayerUpdate() {
750 void SurfaceFlinger::signalRefresh() {
754 status_t SurfaceFlinger::postMessageAsync(const sp<MessageBase>& msg,
759 status_t SurfaceFlinger::postMessageSync(const sp<MessageBase>& msg,
768 void SurfaceFlinger::run() {
774 void SurfaceFlinger::enableHardwareVsync() {
778 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
784 void SurfaceFlinger::resyncToHardwareVsync(bool makeAvailable) {
802 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, true);
808 void SurfaceFlinger::disableHardwareVsync(bool makeUnavailable) {
811 //eventControl(HWC_DISPLAY_PRIMARY, SurfaceFlinger::EVENT_VSYNC, false);
821 void SurfaceFlinger::onVSyncReceived(int type, nsecs_t timestamp) {
838 void SurfaceFlinger::onHotplugReceived(int type, bool connected) {
861 void SurfaceFlinger::eventControl(int disp, int event, int enabled) {
866 void SurfaceFlinger::onMessageReceived(int32_t what) {
883 void SurfaceFlinger::handleMessageTransaction() {
890 void SurfaceFlinger::handleMessageInvalidate() {
895 void SurfaceFlinger::handleMessageRefresh() {
905 void SurfaceFlinger::doDebugFlashRegions()
945 void SurfaceFlinger::preComposition()
960 void SurfaceFlinger::postComposition()
1001 void SurfaceFlinger::rebuildLayerStacks() {
1017 SurfaceFlinger::computeVisibleRegions(layers,
1042 void SurfaceFlinger::setUpHWComposer() {
1105 void SurfaceFlinger::doComposition() {
1127 void SurfaceFlinger::postFramebuffer()
1179 void SurfaceFlinger::handleTransaction(uint32_t transactionFlags)
1208 void SurfaceFlinger::handleTransactionLocked(uint32_t transactionFlags)
1387 // drawing state. However, SurfaceFlinger's own transaction has not
1465 void SurfaceFlinger::commitTransaction()
1485 void SurfaceFlinger::computeVisibleRegions(
1624 void SurfaceFlinger::invalidateLayerStack(uint32_t layerStack,
1634 void SurfaceFlinger::handlePageFlip()
1651 void SurfaceFlinger::invalidateHwcGeometry()
1657 void SurfaceFlinger::doDisplayComposition(const sp<const DisplayDevice>& hw,
1701 void SurfaceFlinger::doComposeSurfaces(const sp<const DisplayDevice>& hw, const Region& dirty)
1823 void SurfaceFlinger::drawWormhole(const sp<const DisplayDevice>& hw, const Region& region) const {
1829 void SurfaceFlinger::addClientLayer(const sp<Client>& client,
1843 status_t SurfaceFlinger::removeLayer(const sp<Layer>& layer) {
1855 uint32_t SurfaceFlinger::peekTransactionFlags(uint32_t flags) {
1859 uint32_t SurfaceFlinger::getTransactionFlags(uint32_t flags) {
1863 uint32_t SurfaceFlinger::setTransactionFlags(uint32_t flags) {
1871 void SurfaceFlinger::setTransactionState(
1949 uint32_t SurfaceFlinger::setDisplayStateLocked(const DisplayState& s)
1989 uint32_t SurfaceFlinger::setClientStateLocked(
2052 status_t SurfaceFlinger::createLayer(
2092 status_t SurfaceFlinger::createNormalLayer(const sp<Client>& client,
2127 status_t SurfaceFlinger::createDimLayer(const sp<Client>& client,
2137 status_t SurfaceFlinger::onLayerRemoved(const sp<Client>& client, const sp<IBinder>& handle)
2150 status_t SurfaceFlinger::onLayerDestroyed(const wp<Layer>& layer)
2166 void SurfaceFlinger::onInitializeDisplays() {
2187 void SurfaceFlinger::initializeDisplays() {
2189 SurfaceFlinger* flinger;
2191 MessageScreenInitialized(SurfaceFlinger* flinger) : flinger(flinger) { }
2202 void SurfaceFlinger::onScreenAcquired(const sp<const DisplayDevice>& hw) {
2227 void SurfaceFlinger::onScreenReleased(const sp<const DisplayDevice>& hw) {
2251 void SurfaceFlinger::unblank(const sp<IBinder>& display) {
2253 SurfaceFlinger& mFlinger;
2256 MessageScreenAcquired(SurfaceFlinger& flinger,
2274 SurfaceFlinger::blank(const sp<IBinder>& display) {
2276 SurfaceFlinger& mFlinger;
2279 MessageScreenReleased(SurfaceFlinger& flinger,
2299 status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
2309 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
2321 "SurfaceFlinger appears to be unresponsive, "
2363 void SurfaceFlinger::listLayersLocked(const Vector<String16>& args, size_t& index,
2374 void SurfaceFlinger::dumpStatsLocked(const Vector<String16>& args, size_t& index,
2401 void SurfaceFlinger::clearStatsLocked(const Vector<String16>& args, size_t& index,
2424 void SurfaceFlinger::logFrameStats() {
2435 /*static*/ void SurfaceFlinger::appendSfConfigString(String8& result)
2455 void SurfaceFlinger::dumpAllLocked(const Vector<String16>& args, size_t& index,
2518 * Dump SurfaceFlinger global state
2522 result.append("SurfaceFlinger global state:\n");
2589 SurfaceFlinger::getLayerSortedByZForHwcDisplay(int id) {
2606 bool SurfaceFlinger::startDdmConnection()
2624 status_t SurfaceFlinger::onTransact(
2642 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
2671 "can't access SurfaceFlinger pid=%d, uid=%d", pid, uid);
2748 void SurfaceFlinger::repaintEverything() {
2839 status_t SurfaceFlinger::captureScreen(const sp<IBinder>& display,
2863 SurfaceFlinger* flinger;
2870 MessageCaptureScreen(SurfaceFlinger* flinger,
2920 void SurfaceFlinger::renderScreenImplLocked(
2966 status_t SurfaceFlinger::captureScreenImplLocked(
3075 void SurfaceFlinger::checkScreenshot(size_t w, size_t s, size_t h, void const* vaddr,
3105 SurfaceFlinger::LayerVector::LayerVector() {
3108 SurfaceFlinger::LayerVector::LayerVector(const LayerVector& rhs)
3112 int SurfaceFlinger::LayerVector::do_compare(const void* lhs,
3134 SurfaceFlinger::DisplayDeviceState::DisplayDeviceState()
3138 SurfaceFlinger::DisplayDeviceState::DisplayDeviceState(DisplayDevice::DisplayType type)