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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc

Issue 2717443004: Don't require CHROMIUM_copy_compressed_texture for the passthrough decoder. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_split.h" 7 #include "base/strings/string_split.h"
8 #include "gpu/command_buffer/service/feature_info.h" 8 #include "gpu/command_buffer/service/feature_info.h"
9 #include "gpu/command_buffer/service/gl_utils.h" 9 #include "gpu/command_buffer/service/gl_utils.h"
10 #include "ui/gl/gl_version_info.h" 10 #include "ui/gl/gl_version_info.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 disallowed_features)) { 169 disallowed_features)) {
170 group_ = NULL; // Must not destroy ContextGroup if it is not initialized. 170 group_ = NULL; // Must not destroy ContextGroup if it is not initialized.
171 Destroy(true); 171 Destroy(true);
172 return false; 172 return false;
173 } 173 }
174 174
175 // Check for required extensions 175 // Check for required extensions
176 if (!feature_info_->feature_flags().angle_robust_client_memory || 176 if (!feature_info_->feature_flags().angle_robust_client_memory ||
177 !feature_info_->feature_flags().chromium_bind_generates_resource || 177 !feature_info_->feature_flags().chromium_bind_generates_resource ||
178 !feature_info_->feature_flags().chromium_copy_texture || 178 !feature_info_->feature_flags().chromium_copy_texture ||
179 !feature_info_->feature_flags().chromium_copy_compressed_texture ||
180 !feature_info_->feature_flags().angle_client_arrays || 179 !feature_info_->feature_flags().angle_client_arrays ||
181 glIsEnabled(GL_CLIENT_ARRAYS_ANGLE) != GL_FALSE) { 180 glIsEnabled(GL_CLIENT_ARRAYS_ANGLE) != GL_FALSE) {
182 // TODO(geofflang): Verify that ANGLE_webgl_compatibility is enabled if this 181 // TODO(geofflang): Verify that ANGLE_webgl_compatibility is enabled if this
183 // is a WebGL context (depends on crbug.com/671217). 182 // is a WebGL context (depends on crbug.com/671217).
184 Destroy(true); 183 Destroy(true);
185 return false; 184 return false;
186 } 185 }
187 186
188 image_manager_.reset(new ImageManager()); 187 image_manager_.reset(new ImageManager());
189 188
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 }, /* NOLINT */ 859 }, /* NOLINT */
861 860
862 const GLES2DecoderPassthroughImpl::CommandInfo 861 const GLES2DecoderPassthroughImpl::CommandInfo
863 GLES2DecoderPassthroughImpl::command_info[] = { 862 GLES2DecoderPassthroughImpl::command_info[] = {
864 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; 863 GLES2_COMMAND_LIST(GLES2_CMD_OP)};
865 864
866 #undef GLES2_CMD_OP 865 #undef GLES2_CMD_OP
867 866
868 } // namespace gles2 867 } // namespace gles2
869 } // namespace gpu 868 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698