Open Bug 625346 Opened 14 years ago Updated 2 years ago

Cleanup TextureImage API (not very good and confusing design)

Categories

(Core :: Graphics, defect)

ARM
Linux
defect

Tracking

()

People

(Reporter: romaxa, Unassigned)

Details

In bug 618628 we had some misunderstanding about current TextureImage API's.

1) Not very clear and causing some problems ::Resize API
  I think Texture::Resize is non-standard and confusing some implementations API. would be nice to operate with textures without resize, and for that we need to fix a bit BeginPaint implementations BasicBufferOGL and possibly some other.

2) Tricky BeginUpdate aRegion state, which is coming to BeginUpdate, can be modified by TextureImage class (according to Texture state).
What's wrong with texture resizing?  Resizing a texture is a very generic thing to do in GL terms; if something's broken at that level, then I would write off the entire GL stack.
Texture resizing is done before BlitTextureImage
and that causing some problems with Texture Bounded to X-Surface
see: https://bugzilla.mozilla.org/show_bug.cgi?id=606794#c4
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.