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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc

Issue 2826143003: Passthrough CmdDecoder: Use robust CompressedTex(Sub)Image (Closed)
Patch Set: Manually add glCompressedTexSubImage3DRobustANGLE to gl_mack.h because it has more than the 10 args… Created 3 years, 8 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
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
index 43ec395c203efbde4488cf5bf3f7b4eeb3a638d1..9bfcb6b2750c7578ba5e0b76107cdb2812d64803 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
@@ -469,10 +469,9 @@ error::Error GLES2DecoderPassthroughImpl::DoCompressedTexImage2D(
GLsizei image_size,
GLsizei data_size,
const void* data) {
- // TODO(cwallez@chromium.org): Use data_size with the robust version of the
- // entry point
- glCompressedTexImage2D(target, level, internalformat, width, height, border,
- image_size, data);
+ glCompressedTexImage2DRobustANGLE(target, level, internalformat, width,
+ height, border, image_size, data_size,
+ data);
return error::kNoError;
}
@@ -487,10 +486,9 @@ error::Error GLES2DecoderPassthroughImpl::DoCompressedTexSubImage2D(
GLsizei image_size,
GLsizei data_size,
const void* data) {
- // TODO(cwallez@chromium.org): Use data_size with the robust version of the
- // entry point
- glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height,
- format, image_size, data);
+ glCompressedTexSubImage2DRobustANGLE(target, level, xoffset, yoffset, width,
+ height, format, image_size, data_size,
+ data);
return error::kNoError;
}
@@ -505,10 +503,9 @@ error::Error GLES2DecoderPassthroughImpl::DoCompressedTexImage3D(
GLsizei image_size,
GLsizei data_size,
const void* data) {
- // TODO(cwallez@chromium.org): Use data_size with the robust version of the
- // entry point
- glCompressedTexImage3D(target, level, internalformat, width, height, depth,
- border, image_size, data);
+ glCompressedTexImage3DRobustANGLE(target, level, internalformat, width,
+ height, depth, border, image_size,
+ data_size, data);
return error::kNoError;
}
@@ -525,10 +522,9 @@ error::Error GLES2DecoderPassthroughImpl::DoCompressedTexSubImage3D(
GLsizei image_size,
GLsizei data_size,
const void* data) {
- // TODO(cwallez@chromium.org): Use data_size with the robust version of the
- // entry point
- glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width,
- height, depth, format, image_size, data);
+ glCompressedTexSubImage3DRobustANGLE(target, level, xoffset, yoffset, zoffset,
+ width, height, depth, format, image_size,
+ data_size, data);
return error::kNoError;
}
« no previous file with comments | « no previous file | ui/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698