Bug 1829026 - Remove unused ClientWebGLContext local extensions. r=jgilbert,aosmond
DrawTargetWebgl is transitioning away from using ClientWebGLContext, so local extensions that were added to support that use-case are no longer necessary. Differential Revision: https://phabricator.services.mozilla.com/D194346
This commit is contained in:
@@ -41,10 +41,6 @@ class OwningHTMLCanvasElementOrOffscreenCanvas;
|
||||
class WebGLChild;
|
||||
} // namespace dom
|
||||
|
||||
namespace gfx {
|
||||
class DrawTargetWebgl;
|
||||
}
|
||||
|
||||
namespace webgl {
|
||||
class AvailabilityRunnable;
|
||||
class TexUnpackBlob;
|
||||
@@ -753,7 +749,6 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
|
||||
friend class webgl::ObjectJS;
|
||||
friend class webgl::ProgramKeepAlive;
|
||||
friend class webgl::ShaderKeepAlive;
|
||||
friend class gfx::DrawTargetWebgl;
|
||||
|
||||
// ----------------------------- Lifetime and DOM ---------------------------
|
||||
public:
|
||||
@@ -1093,8 +1088,6 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
|
||||
RefPtr<gfx::DataSourceSurface> BackBufferSnapshot();
|
||||
[[nodiscard]] bool DoReadPixels(const webgl::ReadPixelsDesc&,
|
||||
Range<uint8_t>) const;
|
||||
[[nodiscard]] bool DoReadPixels(const webgl::ReadPixelsDesc&,
|
||||
const mozilla::ipc::Shmem&) const;
|
||||
uvec2 DrawingBufferSize();
|
||||
|
||||
// -
|
||||
@@ -1499,12 +1492,6 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
|
||||
GLenum usage, GLuint srcElemOffset = 0,
|
||||
GLuint srcElemCountOverride = 0);
|
||||
|
||||
void RawBufferData(GLenum target, const uint8_t* srcBytes, size_t srcLen,
|
||||
GLenum usage);
|
||||
void RawBufferSubData(GLenum target, WebGLsizeiptr dstByteOffset,
|
||||
const uint8_t* srcBytes, size_t srcLen,
|
||||
bool unsynchronized = false);
|
||||
|
||||
void BufferSubData(GLenum target, WebGLsizeiptr dstByteOffset,
|
||||
const dom::ArrayBufferView& src, GLuint srcElemOffset = 0,
|
||||
GLuint srcElemCountOverride = 0);
|
||||
@@ -1622,9 +1609,6 @@ class ClientWebGLContext final : public nsICanvasRenderingContextInternal,
|
||||
GLenum internalFormat, const ivec3& size) const;
|
||||
|
||||
// Primitive tex upload functions
|
||||
void RawTexImage(uint32_t level, GLenum respecFormat, uvec3 offset,
|
||||
const webgl::PackingInfo& pi,
|
||||
webgl::TexUnpackBlobDesc&&) const;
|
||||
void TexImage(uint8_t funcDims, GLenum target, GLint level,
|
||||
GLenum respecFormat, const ivec3& offset,
|
||||
const Maybe<ivec3>& size, GLint border,
|
||||
|
||||
Reference in New Issue
Block a user