Android Application Surface Creation Mechanism

Surface Core ConceptA Surface represents a raw buffer managed by the screen compositor (SurfaceFlinger). It acts as the canvas where producers (like MediaPlayer, OpenGL, or Camera) draw content. Understanding the relationship between SurfaceFlinger and Surface is crucial for Android graphics architecture.ViewRoot Establishment and IPCWhen the U ...

Posted on Sun, 27 Sep 2026 16:17:14 +0000 by ginga8

Android App VSync Lifecycle: Request, Scheduling, Dispatch, and Termination

Initiating a VSync Request An app triggers a VSync request via Binder IPC, ultimately invoking EventThread::requestNextVsync(). This method updates the associated EventThreadConnection’s internal request state and signals the event thread: void EventThread::requestNextVsync(const sp<EventThreadConnection>& conn) { std::lock_gua ...

Posted on Thu, 10 Sep 2026 16:43:53 +0000 by Alkimuz