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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 7304002: Correct reporting of compressed texture formats and shader binary formats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 5 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 | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 6afdbd736ba58861981ef46e2a1555429a24c246..8ef17af32bc526ed29b32225c046647813a3444c 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -434,8 +434,7 @@ GLES2Implementation::GLES2Implementation(
void* transfer_buffer,
int32 transfer_buffer_id,
bool share_resources)
- : util_(0), // TODO(gman): Get real number of compressed texture formats.
- helper_(helper),
+ : helper_(helper),
transfer_buffer_(
kStartingOffset,
transfer_buffer_size - kStartingOffset,
@@ -496,6 +495,11 @@ GLES2Implementation::GLES2Implementation(
GL_NUM_SHADER_BINARY_FORMATS,
};
+ util_.set_num_compressed_texture_formats(
+ gl_state_.num_compressed_texture_formats);
+ util_.set_num_shader_binary_formats(
+ gl_state_.num_shader_binary_formats);
+
GetMultipleIntegervCHROMIUM(
pnames, arraysize(pnames), &gl_state_.max_combined_texture_image_units,
sizeof(gl_state_));
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698