summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkkinnunen <kkinnunen@nvidia.com>2015-09-30 13:13:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-30 20:14:45 +0000
commitdd449f5196bc727a287c13fb09b4b9cbcbd9c7e4 (patch)
treed0a1874b24ace19ec13cf0a5428e8f3b2a7b354c
parent6900594a6e00c1f1f16a0ee5098fc81582cc2e26 (diff)
downloadchromium_src-dd449f5196bc727a287c13fb09b4b9cbcbd9c7e4.zip
chromium_src-dd449f5196bc727a287c13fb09b4b9cbcbd9c7e4.tar.gz
chromium_src-dd449f5196bc727a287c13fb09b4b9cbcbd9c7e4.tar.bz2
command_buffer: Remove redundant extension checks from two decoder functions
Remove redundant checks of extension feature flag from two gl path rendering related matrix functions. The check is for function X is nowadays done at HandleX() functions. The HandleX functions are generated by the code generator for these matrix functions. BUG=344330 NOTRY=true Review URL: https://codereview.chromium.org/1352623006 Cr-Commit-Position: refs/heads/master@{#351627}
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 99401db..8574d5f 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -14327,12 +14327,6 @@ void GLES2DecoderImpl::DoMatrixLoadfCHROMIUM(GLenum matrix_mode,
const GLfloat* matrix) {
DCHECK(matrix_mode == GL_PATH_PROJECTION_CHROMIUM ||
matrix_mode == GL_PATH_MODELVIEW_CHROMIUM);
- if (!features().chromium_path_rendering) {
- LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION,
- "glMatrixLoadfCHROMIUM",
- "function not available");
- return;
- }
GLfloat* target_matrix = matrix_mode == GL_PATH_PROJECTION_CHROMIUM
? state_.projection_matrix
@@ -14347,13 +14341,6 @@ void GLES2DecoderImpl::DoMatrixLoadIdentityCHROMIUM(GLenum matrix_mode) {
DCHECK(matrix_mode == GL_PATH_PROJECTION_CHROMIUM ||
matrix_mode == GL_PATH_MODELVIEW_CHROMIUM);
- if (!features().chromium_path_rendering) {
- LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION,
- "glMatrixLoadIdentityCHROMIUM",
- "function not available");
- return;
- }
-
GLfloat* target_matrix = matrix_mode == GL_PATH_PROJECTION_CHROMIUM
? state_.projection_matrix
: state_.modelview_matrix;