Closed
Bug 942509
Opened 9 years ago
Closed 9 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•9 years ago
|
||
These new files will also receive more code: the TexImage2D() functions and friends, and the CanUpload*() getters.
Comment 2•9 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•9 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•9 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=81c4c0638a07
Assignee | ||
Comment 5•9 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=1b48093b8244
Assignee | ||
Comment 6•9 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=01672e3e55a0 http://hg.mozilla.org/integration/mozilla-inbound/rev/3f08f279aec7
Target Milestone: --- → mozilla28
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3f08f279aec7
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Whiteboard: [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•