Closed
Bug 942509
Opened 11 years ago
Closed 11 years ago
Move Upload* helpers out of GLContext
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: bjacob, Assigned: bjacob)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
35.02 KB,
patch
|
gal
:
review+
|
Details | Diff | Splinter Review |
This part of GLContext.h:
SurfaceFormat UploadImageDataToTexture(unsigned char* aData,
int32_t aStride,
gfxImageFormat aFormat,
const nsIntRegion& aDstRegion,
GLuint& aTexture,
bool aOverwrite = false,
bool aPixelBuffer = false,
GLenum aTextureUnit = LOCAL_GL_TEXTURE0,
GLenum aTextureTarget = LOCAL_GL_TEXTURE_2D);
/**
* Convenience wrapper around UploadImageDataToTexture for gfxASurfaces.
*/
SurfaceFormat UploadSurfaceToTexture(gfxASurface *aSurface,
const nsIntRegion& aDstRegion,
GLuint& aTexture,
bool aOverwrite = false,
const nsIntPoint& aSrcPoint = nsIntPoint(0, 0),
bool aPixelBuffer = false,
GLenum aTextureUnit = LOCAL_GL_TEXTURE0,
GLenum aTextureTarget = LOCAL_GL_TEXTURE_2D);
/**
* Same as above, for DataSourceSurfaces.
*/
SurfaceFormat UploadSurfaceToTexture(gfx::DataSourceSurface *aSurface,
const nsIntRegion& aDstRegion,
GLuint& aTexture,
bool aOverwrite = false,
const nsIntPoint& aSrcPoint = nsIntPoint(0, 0),
bool aPixelBuffer = false,
GLenum aTextureUnit = LOCAL_GL_TEXTURE0,
GLenum aTextureTarget = LOCAL_GL_TEXTURE_2D);
Assignee | ||
Comment 1•11 years ago
|
||
These new files will also receive more code: the TexImage2D() functions and friends, and the CanUpload*() getters.
Comment 2•11 years ago
|
||
Comment on attachment 8340773 [details] [diff] [review]
Move Upload* functions to new GLUploadHelpers files
Looks like straight up code movement so I will steal this one if Jeff doesn't mind.
Attachment #8340773 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 3•11 years ago
|
||
This one is indeed quite straightforward. The only question which I'd expect to be raised is how much file proliferation we want to allow; this is what I tried to justify in comment 1 with
> These new files will also receive more code: the TexImage2D() functions and friends, and the CanUpload*() getters.
So that while this patch introduces more files, it will allow future patches not to.
Assignee | ||
Comment 4•11 years ago
|
||
Assignee | ||
Comment 5•11 years ago
|
||
Assignee | ||
Comment 6•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=01672e3e55a0
http://hg.mozilla.org/integration/mozilla-inbound/rev/3f08f279aec7
Target Milestone: --- → mozilla28
Comment 7•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•