Hi, I have a View that is rendered offscreen into a bitmap before
being converted into a glTexture to be rendered onto a GLSurfaceView.
This works great except that it is very expensive to do this as I am
regenerating the glTexture every frame. I would like to regenerate the
glTexture only when the View is invalidated or dirty, but try as I
can, I've found no way to find that out!

1. The dirty flag is stored in View.mPrivateFlags which is of course
private
2. There are no View methods available to check the flag
3. I can implement a ViewParent to make invalidateChild() set a flag,
but I can't assign the ViewParent to the child because
View.assignParent() is package private
4. I can add the View to a ViewGroup, but I can't override
ViewGroup.invalidateChild() to set a flag because it is final
5. I can override ViewGroup.invalidateChildInParent() to set a flag
but that doesn't get called unless the View is being attached to a
real screen.
6. I can't implement a dummy screen because all that stuff is package
private

Is there something else that I have missed?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to