зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1250710 - Add stub. - r=ethlin
MozReview-Commit-ID: B555z5b3pyx
This commit is contained in:
Родитель
debc525475
Коммит
83e4d0c1f0
|
@ -55,7 +55,16 @@ public:
|
|||
const dom::Nullable<dom::ArrayBuffer>& maybeData);
|
||||
void GetBufferSubData(GLenum target, GLintptr offset,
|
||||
const dom::SharedArrayBuffer& data);
|
||||
void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
|
||||
GLenum type, WebGLsizeiptr offset, ErrorResult& out_error);
|
||||
|
||||
void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
|
||||
GLenum format, GLenum type,
|
||||
const dom::Nullable<dom::ArrayBufferView>& pixels,
|
||||
ErrorResult& out_error)
|
||||
{
|
||||
WebGLContext::ReadPixels(x, y, width, height, format, type, pixels, out_error);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Framebuffer objects - WebGL2ContextFramebuffers.cpp
|
||||
|
|
|
@ -246,4 +246,15 @@ void WebGL2Context::GetBufferSubData(GLenum target, GLintptr offset,
|
|||
GetBufferSubDataT(target, offset, data);
|
||||
}
|
||||
|
||||
void
|
||||
WebGL2Context::ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
|
||||
GLenum type, GLintptr offset)
|
||||
{
|
||||
const char funcName[] = "readPixels";
|
||||
if (IsContextLost())
|
||||
return;
|
||||
|
||||
ErrorInvalidOperation("%s: Not yet implemented.", funcName);
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
Загрузка…
Ссылка в новой задаче