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

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

Issue 2909683002: Track currently bound external and multisample textures. (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
index 35a84dc733f3a6be544fe31c5cbc00e89ce41f5f..7a1985b4dd73e6df03ca0bacabc41a253194e944 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
@@ -210,10 +210,17 @@ bool GLES2DecoderPassthroughImpl::Initialize(
active_texture_unit_ = 0;
bound_textures_[GL_TEXTURE_2D].resize(num_texture_units, 0);
bound_textures_[GL_TEXTURE_CUBE_MAP].resize(num_texture_units, 0);
- if (feature_info_->IsWebGL2OrES3Context()) {
+ if (feature_info_->gl_version_info().IsAtLeastGLES(3, 0)) {
Zhenyao Mo 2017/05/26 22:48:10 Are you saying we will only create ES3 ANGLE conte
Geoff Lang 2017/05/29 13:47:43 Correct, this is how ANGLE determines if it should
bound_textures_[GL_TEXTURE_2D_ARRAY].resize(num_texture_units, 0);
bound_textures_[GL_TEXTURE_3D].resize(num_texture_units, 0);
}
+ if (feature_info_->gl_version_info().IsAtLeastGLES(3, 1)) {
+ bound_textures_[GL_TEXTURE_2D_MULTISAMPLE].resize(num_texture_units, 0);
+ }
+ if (feature_info_->feature_flags().oes_egl_image_external ||
+ feature_info_->feature_flags().nv_egl_stream_consumer_external) {
+ bound_textures_[GL_TEXTURE_EXTERNAL_OES].resize(num_texture_units, 0);
+ }
if (group_->gpu_preferences().enable_gpu_driver_debug_logging &&
feature_info_->feature_flags().khr_debug) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698