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

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

Issue 1949303003: Improve indexed gl state related GL commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tex
Patch Set: fix a DCHECK failure Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 GL_COLOR_ATTACHMENT11, 1310 GL_COLOR_ATTACHMENT11,
1311 GL_COLOR_ATTACHMENT12, 1311 GL_COLOR_ATTACHMENT12,
1312 GL_COLOR_ATTACHMENT13, 1312 GL_COLOR_ATTACHMENT13,
1313 GL_COLOR_ATTACHMENT14, 1313 GL_COLOR_ATTACHMENT14,
1314 GL_COLOR_ATTACHMENT15, 1314 GL_COLOR_ATTACHMENT15,
1315 }; 1315 };
1316 if (max_color_attachments < kTotalColorAttachmentEnums) { 1316 if (max_color_attachments < kTotalColorAttachmentEnums) {
1317 validators_.attachment.RemoveValues( 1317 validators_.attachment.RemoveValues(
1318 kColorAttachments + max_color_attachments, 1318 kColorAttachments + max_color_attachments,
1319 kTotalColorAttachmentEnums - max_color_attachments); 1319 kTotalColorAttachmentEnums - max_color_attachments);
1320 validators_.read_buffer.RemoveValues(
1321 kColorAttachments + max_color_attachments,
1322 kTotalColorAttachmentEnums - max_color_attachments);
1320 } 1323 }
1321 1324
1322 GLint max_draw_buffers = 0; 1325 GLint max_draw_buffers = 0;
1323 glGetIntegerv(GL_MAX_DRAW_BUFFERS, &max_draw_buffers); 1326 glGetIntegerv(GL_MAX_DRAW_BUFFERS, &max_draw_buffers);
1324 const int kTotalDrawBufferEnums = 16; 1327 const int kTotalDrawBufferEnums = 16;
1325 const GLenum kDrawBuffers[] = { 1328 const GLenum kDrawBuffers[] = {
1326 GL_DRAW_BUFFER0, 1329 GL_DRAW_BUFFER0,
1327 GL_DRAW_BUFFER1, 1330 GL_DRAW_BUFFER1,
1328 GL_DRAW_BUFFER2, 1331 GL_DRAW_BUFFER2,
1329 GL_DRAW_BUFFER3, 1332 GL_DRAW_BUFFER3,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 if (pos == std::string::npos) { 1379 if (pos == std::string::npos) {
1377 extensions_ += (extensions_.empty() ? "" : " ") + str; 1380 extensions_ += (extensions_.empty() ? "" : " ") + str;
1378 } 1381 }
1379 } 1382 }
1380 1383
1381 FeatureInfo::~FeatureInfo() { 1384 FeatureInfo::~FeatureInfo() {
1382 } 1385 }
1383 1386
1384 } // namespace gles2 1387 } // namespace gles2
1385 } // namespace gpu 1388 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_state.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698