Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6208227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:46:23+00:00 2026-05-24T05:46:23+00:00

Though I found a question about Sharing the GLES20 context… , I think my

  • 0

Though I found a question about Sharing the GLES20 context…, I think my situation is a bit more broad.

I’ve got two GLSurfaceViews layered on each other in a FrameLayout. (One is Harism‘s CurlView from android_page_curl running as a library in my application. The other GLSurfaceView is my own.) Each GLSurfaceView is being run in its own thread.

I’m having inconsistent issues with displaying bitmaps on my GLSurfaceView. Sometimes the bitmap is drawn perfectly, and sometimes only parts of it are visible. I bet the two GLSurfaceViews are competing for access to the screen memory and trampling on each other.

To solve it, I was thinking I can just synchronize on an a singleton boolean in the application before calling onDrawFrame(), but after reading Threading lightly… I think I should be a bit more thoughtful.

On what object, and around what code should I synchronize to make the two overlayed GLSurfaceViews play nicely?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:46:24+00:00Added an answer on May 24, 2026 at 5:46 am

    I ended up using a View over the GLSurfaceView, for reasons similar to those here

    programmatically adding SurfaceView to a FrameLayout which is Z-ordered under ImageView

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very basic question about the LocalMon print monitor found at http://msdn.microsoft.com/en-us/library/windows/hardware/ff556478%28v=vs.85%29.aspx
This might be a trivial question, but I have not found anything about it,
Though the question is basic, but I found it very crucial to understand to
In this question I found an interesting detail about scope of a final variable
( This question about refactoring F# code got me one down vote, but also
This question is a follow up to my question about sharing resources between web
I found this question in an old question in your website so i thought
In working through the issues with another question, I've found text files with embedded
I searched through here as best I could and though I found some relevant
Going through Javascript documentation, I found the following two functions on a Javascript object

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.