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

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: 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 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 GL_COLOR_ATTACHMENT11, 1301 GL_COLOR_ATTACHMENT11,
1302 GL_COLOR_ATTACHMENT12, 1302 GL_COLOR_ATTACHMENT12,
1303 GL_COLOR_ATTACHMENT13, 1303 GL_COLOR_ATTACHMENT13,
1304 GL_COLOR_ATTACHMENT14, 1304 GL_COLOR_ATTACHMENT14,
1305 GL_COLOR_ATTACHMENT15, 1305 GL_COLOR_ATTACHMENT15,
1306 }; 1306 };
1307 if (max_color_attachments < kTotalColorAttachmentEnums) { 1307 if (max_color_attachments < kTotalColorAttachmentEnums) {
1308 validators_.attachment.RemoveValues( 1308 validators_.attachment.RemoveValues(
1309 kColorAttachments + max_color_attachments, 1309 kColorAttachments + max_color_attachments,
1310 kTotalColorAttachmentEnums - max_color_attachments); 1310 kTotalColorAttachmentEnums - max_color_attachments);
1311 validators_.read_buffer.RemoveValues(
1312 kColorAttachments + max_color_attachments,
1313 kTotalColorAttachmentEnums - max_color_attachments);
1311 } 1314 }
1312 1315
1313 GLint max_draw_buffers = 0; 1316 GLint max_draw_buffers = 0;
1314 glGetIntegerv(GL_MAX_DRAW_BUFFERS, &max_draw_buffers); 1317 glGetIntegerv(GL_MAX_DRAW_BUFFERS, &max_draw_buffers);
1315 const int kTotalDrawBufferEnums = 16; 1318 const int kTotalDrawBufferEnums = 16;
1316 const GLenum kDrawBuffers[] = { 1319 const GLenum kDrawBuffers[] = {
1317 GL_DRAW_BUFFER0, 1320 GL_DRAW_BUFFER0,
1318 GL_DRAW_BUFFER1, 1321 GL_DRAW_BUFFER1,
1319 GL_DRAW_BUFFER2, 1322 GL_DRAW_BUFFER2,
1320 GL_DRAW_BUFFER3, 1323 GL_DRAW_BUFFER3,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 if (pos == std::string::npos) { 1370 if (pos == std::string::npos) {
1368 extensions_ += (extensions_.empty() ? "" : " ") + str; 1371 extensions_ += (extensions_.empty() ? "" : " ") + str;
1369 } 1372 }
1370 } 1373 }
1371 1374
1372 FeatureInfo::~FeatureInfo() { 1375 FeatureInfo::~FeatureInfo() {
1373 } 1376 }
1374 1377
1375 } // namespace gles2 1378 } // namespace gles2
1376 } // namespace gpu 1379 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698