This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How set buffer count of one Anativewindows?

Hi all,

After we use ANativeWindow_fromSurface to get one ANativeWindow from one GLSurfaceView, if we use native_window_set_buffer_count to set buffer count of ANativeWindow , i will be failed.

If  ANativeWindow get from one SurfaceView not GLSurfaceView, native_window_set_buffer_count will be used successfully.

What is differenct between GLSurfaceView and SurfaceView? Why buffer count setting for ANativeWindow from GLSurfaceView is failed?

 

regards,

guangx

  • Guang,

    How are you defining failure and/or success? What are you trying to use the buffer count for? The parameter is specific for GLSurface view and Video playback, but is not used under normal circumstances as I understand. Can you please be more specific about what you are expecting to happen when you set this value and then I can help you.

     

    Matt Kiser