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

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

Issue 2353443002: Fix typo: imcompatible -> incompatible (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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) 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/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 13076 matching lines...) Expand 10 before | Expand all | Expand 10 after
13087 int dr, dg, db, da; 13087 int dr, dg, db, da;
13088 GLES2Util::GetColorFormatComponentSizes( 13088 GLES2Util::GetColorFormatComponentSizes(
13089 internal_format, 0, &dr, &dg, &db, &da); 13089 internal_format, 0, &dr, &dg, &db, &da);
13090 DCHECK(dr > 0 || dg > 0 || db > 0 || da > 0); 13090 DCHECK(dr > 0 || dg > 0 || db > 0 || da > 0);
13091 if ((dr > 0 && sr != dr) || 13091 if ((dr > 0 && sr != dr) ||
13092 (dg > 0 && sg != dg) || 13092 (dg > 0 && sg != dg) ||
13093 (db > 0 && sb != db) || 13093 (db > 0 && sb != db) ||
13094 (da > 0 && sa != da)) { 13094 (da > 0 && sa != da)) {
13095 LOCAL_SET_GL_ERROR( 13095 LOCAL_SET_GL_ERROR(
13096 GL_INVALID_OPERATION, 13096 GL_INVALID_OPERATION,
13097 func_name, "imcompatible color component sizes"); 13097 func_name, "incompatible color component sizes");
13098 return false; 13098 return false;
13099 } 13099 }
13100 } 13100 }
13101 } 13101 }
13102 return true; 13102 return true;
13103 } 13103 }
13104 13104
13105 void GLES2DecoderImpl::DoCopyTexImage2D( 13105 void GLES2DecoderImpl::DoCopyTexImage2D(
13106 GLenum target, 13106 GLenum target,
13107 GLint level, 13107 GLint level,
(...skipping 4886 matching lines...) Expand 10 before | Expand all | Expand 10 after
17994 } 17994 }
17995 17995
17996 // Include the auto-generated part of this file. We split this because it means 17996 // Include the auto-generated part of this file. We split this because it means
17997 // we can easily edit the non-auto generated parts right here in this file 17997 // we can easily edit the non-auto generated parts right here in this file
17998 // instead of having to edit some template or the code generator. 17998 // instead of having to edit some template or the code generator.
17999 #include "base/macros.h" 17999 #include "base/macros.h"
18000 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18000 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18001 18001
18002 } // namespace gles2 18002 } // namespace gles2
18003 } // namespace gpu 18003 } // namespace gpu
OLDNEW
« 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