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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 10078006: Revert 132934 - this change seems to break many webgl related layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "../client/gles2_implementation.h" 7 #include "../client/gles2_implementation.h"
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 unpack_row_length_ = param; 1247 unpack_row_length_ = param;
1248 return; 1248 return;
1249 case GL_UNPACK_SKIP_ROWS: 1249 case GL_UNPACK_SKIP_ROWS:
1250 unpack_skip_rows_ = param; 1250 unpack_skip_rows_ = param;
1251 return; 1251 return;
1252 case GL_UNPACK_SKIP_PIXELS: 1252 case GL_UNPACK_SKIP_PIXELS:
1253 unpack_skip_pixels_ = param; 1253 unpack_skip_pixels_ = param;
1254 return; 1254 return;
1255 case GL_UNPACK_FLIP_Y_CHROMIUM: 1255 case GL_UNPACK_FLIP_Y_CHROMIUM:
1256 unpack_flip_y_ = (param != 0); 1256 unpack_flip_y_ = (param != 0);
1257 break; 1257 return;
1258 case GL_PACK_REVERSE_ROW_ORDER_ANGLE: 1258 case GL_PACK_REVERSE_ROW_ORDER_ANGLE:
1259 pack_reverse_row_order_ = 1259 pack_reverse_row_order_ =
1260 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false; 1260 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false;
1261 break; 1261 break;
1262 default: 1262 default:
1263 break; 1263 break;
1264 } 1264 }
1265 helper_->PixelStorei(pname, param); 1265 helper_->PixelStorei(pname, param);
1266 } 1266 }
1267 1267
(...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 helper_->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); 3133 helper_->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
3134 } 3134 }
3135 #else 3135 #else
3136 helper_->DrawElementsInstancedANGLE( 3136 helper_->DrawElementsInstancedANGLE(
3137 mode, count, type, ToGLuint(indices), primcount); 3137 mode, count, type, ToGLuint(indices), primcount);
3138 #endif 3138 #endif
3139 } 3139 }
3140 3140
3141 } // namespace gles2 3141 } // namespace gles2
3142 } // namespace gpu 3142 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698