Questions tagged [surfaceflinger]

SurfaceFlinger is Android's window compositor. Use this tag for questions specific to SurfaceFlinger component of Android. In addtion, add android tag as well.

SurfaceFlinger is Android's window compositor. Use this tag for questions specific to SurfaceFlinger component of Android. In addtion, add tag too.

100 questions
36
votes
3 answers

Android SurfaceFlinger

I would just like to ask if SurfaceFlinger is always called for any type of drawing into the screen? Example, displaying of JPG file to the screen.
artsylar
  • 2,648
  • 4
  • 34
  • 51
20
votes
1 answer

How do I use Android’s “Surface” classes?

Is there a detailed explanation of Surface, SurfaceHolder, EGLSurface, SurfaceView, GLSurfaceView, SurfaceTexture, and TextureView?  In particular: What’s the difference between SurfaceView and TextureView? Do I need to use GLSurfaceView to use…
fadden
  • 51,356
  • 5
  • 116
  • 166
17
votes
1 answer

Understanding necessity of Android VSYNC signals

I'm trying to get a better understanding of the Android display subsystem, but one item that's still confusing to me is how VSYNC signals are handled, and why so many exist in the first place. Android is designed to use VSYNC at its core, but there…
8
votes
2 answers

Performance drop of Android animation when device stays still but is touched

My app changes the properties of some really simple views (rotation, translation) per frame. I used systrace, as advised by Android performance articles, to check if I was dropping frames. Something really unexpected came up. When the device was…
Petrakeas
  • 1,521
  • 15
  • 28
7
votes
0 answers

Android native code: Assigning a Surface to a specific display

I’m looking for a way to assign a Surface (native window) object to a display so that the buffers submitted to that native window would be rendered to that specific display rather than to the main display. I would like to do that in native code. In…
Bilbo
  • 71
  • 3
7
votes
0 answers

How to change Android OS default-natural orientation?

I have my device TI am335xevm running android Jellybean 4.2.2 with Landscape as the default/natural orientation. How can I change the default/natural orientation of the device to portrait? Here is what I have tried till now, 1) Added setprop…
7
votes
2 answers

How to make sense of dumpsys SurfaceFlinger

Is there any documentation on the output of the adb command "dumpsys SurfaceFlinger"? In particular, I'd like to understand what is the difference between an HWC or GLES layer type, and what does numHwLayers mean? Here is the section of dumpsys…
Andi Jay
  • 5,882
  • 13
  • 51
  • 61
7
votes
1 answer

Error android SurfaceFlinger

I have this error message: SurfaceFlinger translucent=0 isOpaque=1 isExternalDisplayLayer=0 isExternalBlockLayer0 i'm using android 4.1.1 I'm not capable to say which part of my code is generating this message I would like to know if someone had the…
Simo
  • 1,200
  • 1
  • 16
  • 26
6
votes
0 answers

Android SurfaceView - timeRecords is at its maximum size[64]

I am developing a 2D game for mobile using Unity. I am getting the following error on devices running Android 12 only. The project has target API 31. Previous Android versions are not getting this error. 2022-09-02 12:33:40.847 647-647/?…
6
votes
0 answers

AOSP / Android 7: How is EGL utilized in detail?

I am trying to understand the Android (7) Graphics System from the system integrators point of view. My main focus is the minimum functionality that needs to be provided by libegl. I understand that surfaceflinger is the main actor in this domain.…
philipp
  • 1,745
  • 1
  • 14
  • 25
6
votes
0 answers

SurfaceFlinger/gralloc Out of Memory error when allocating buffer memory for use with virtual frame buffer on Android x86 Nougat

We're customizing a fork of the Android x86 Nougat (Android v7.1) project. Because there is no video display hardware in our system we're trying to setup the virtual frame buffer (VFB) so we can then handle the video display in a custom manner (e.g.…
5
votes
0 answers

Changing primary display resolution programmatically

I'm trying to change the display resolution of my primary display on Android 8.1. I get an event from the kernel (based on EDID) that tells me I need to change mode. I then basically do: sp
5
votes
1 answer

Android display VSYNC signal is highly erratic

I'm investigating frame drops in my Android app. They are irregular and happen around once a second on average. I have paired back the renderer in question to a very simple shader and I'm confident that frame render time is short. When I run…
Rupert Rawnsley
  • 2,622
  • 1
  • 29
  • 40
4
votes
1 answer

Surface Recording: Color Format Issues

I am currently trying to record a Surface through the command line screenrecord utility. As per the implementation, the framework sets the color format of the video encoder component as OMX_COLOR_FormatAndroidOpaque. Hence, the video encoder is…
4
votes
1 answer

android rendering using CPU but not GPU?

It's really weird that in systrace tool when I saw the execution of drawing command and window composition by surfaceflinger, this is running on CPU but not on GPU. But as per google talk by Romain Guy, they told that this composition and execution…
Gouse Basha
  • 51
  • 1
  • 3
1
2 3 4 5 6 7