Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 2613803002: Add compressedTex{Sub}Image{2|3}D using PBO signatures to WebGL2 (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
index 26b46a61cec1b1652eca26471731316e44645029..84e495c83a8bab57ebcee4c571278082f274aee2 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp
@@ -1851,6 +1851,21 @@ void WebGL2RenderingContextBase::compressedTexImage2D(
static_cast<uint8_t*>(data->baseAddress()) + srcOffset);
}
+void WebGL2RenderingContextBase::compressedTexImage2D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLsizei imageSize,
+ GLintptr offset) {
+ if (isContextLost())
+ return;
+ contextGL()->CompressedTexImage2D(target, level, internalformat, width,
+ height, border, imageSize,
+ reinterpret_cast<uint8_t*>(offset));
+}
+
void WebGL2RenderingContextBase::compressedTexSubImage2D(
GLenum target,
GLint level,
@@ -1898,6 +1913,22 @@ void WebGL2RenderingContextBase::compressedTexSubImage2D(
static_cast<uint8_t*>(data->baseAddress()) + srcOffset);
}
+void WebGL2RenderingContextBase::compressedTexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLsizei imageSize,
+ GLintptr offset) {
+ if (isContextLost())
+ return;
+ contextGL()->CompressedTexSubImage2D(target, level, xoffset, yoffset, width,
+ height, format, imageSize,
+ reinterpret_cast<uint8_t*>(offset));
+}
+
void WebGL2RenderingContextBase::compressedTexImage3D(
GLenum target,
GLint level,
@@ -1933,6 +1964,22 @@ void WebGL2RenderingContextBase::compressedTexImage3D(
static_cast<uint8_t*>(data->baseAddress()) + srcOffset);
}
+void WebGL2RenderingContextBase::compressedTexImage3D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLint border,
+ GLsizei imageSize,
+ GLintptr offset) {
+ if (isContextLost())
+ return;
+ contextGL()->CompressedTexImage3D(target, level, internalformat, width,
+ height, depth, border, imageSize,
+ reinterpret_cast<uint8_t*>(offset));
+}
+
void WebGL2RenderingContextBase::compressedTexSubImage3D(
GLenum target,
GLint level,
@@ -1970,6 +2017,24 @@ void WebGL2RenderingContextBase::compressedTexSubImage3D(
static_cast<uint8_t*>(data->baseAddress()) + srcOffset);
}
+void WebGL2RenderingContextBase::compressedTexSubImage3D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLenum format,
+ GLsizei imageSize,
+ GLintptr offset) {
+ if (isContextLost())
+ return;
+ contextGL()->CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset,
+ width, height, depth, format, imageSize,
+ reinterpret_cast<uint8_t*>(offset));
+}
+
GLint WebGL2RenderingContextBase::getFragDataLocation(WebGLProgram* program,
const String& name) {
if (isContextLost() || !validateWebGLObject("getFragDataLocation", program))

Powered by Google App Engine
This is Rietveld 408576698