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

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

Issue 9968113: Addition of GL_CHROMIUM_copy_texture extension. (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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after
1404 << param << ")"); 1404 << param << ")");
1405 switch (pname) { 1405 switch (pname) {
1406 case GL_PACK_ALIGNMENT: 1406 case GL_PACK_ALIGNMENT:
1407 pack_alignment_ = param; 1407 pack_alignment_ = param;
1408 break; 1408 break;
1409 case GL_UNPACK_ALIGNMENT: 1409 case GL_UNPACK_ALIGNMENT:
1410 unpack_alignment_ = param; 1410 unpack_alignment_ = param;
1411 break; 1411 break;
1412 case GL_UNPACK_FLIP_Y_CHROMIUM: 1412 case GL_UNPACK_FLIP_Y_CHROMIUM:
1413 unpack_flip_y_ = (param != 0); 1413 unpack_flip_y_ = (param != 0);
1414 return; 1414 break;
1415 case GL_PACK_REVERSE_ROW_ORDER_ANGLE: 1415 case GL_PACK_REVERSE_ROW_ORDER_ANGLE:
1416 pack_reverse_row_order_ = 1416 pack_reverse_row_order_ =
1417 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false; 1417 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false;
1418 break; 1418 break;
1419 default: 1419 default:
1420 break; 1420 break;
1421 } 1421 }
1422 helper_->PixelStorei(pname, param); 1422 helper_->PixelStorei(pname, param);
1423 } 1423 }
1424 1424
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
3245 helper_->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0); 3245 helper_->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
3246 } 3246 }
3247 #else 3247 #else
3248 helper_->DrawElementsInstancedANGLE( 3248 helper_->DrawElementsInstancedANGLE(
3249 mode, count, type, ToGLuint(indices), primcount); 3249 mode, count, type, ToGLuint(indices), primcount);
3250 #endif 3250 #endif
3251 } 3251 }
3252 3252
3253 } // namespace gles2 3253 } // namespace gles2
3254 } // namespace gpu 3254 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698