| OLD | NEW |
| 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 "gpu/command_buffer/client/gles2_implementation.h" | 7 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glPixelStorei(" | 1221 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glPixelStorei(" |
| 1222 << GLES2Util::GetStringPixelStore(pname) << ", " | 1222 << GLES2Util::GetStringPixelStore(pname) << ", " |
| 1223 << param << ")"); | 1223 << param << ")"); |
| 1224 switch (pname) { | 1224 switch (pname) { |
| 1225 case GL_PACK_ALIGNMENT: | 1225 case GL_PACK_ALIGNMENT: |
| 1226 pack_alignment_ = param; | 1226 pack_alignment_ = param; |
| 1227 break; | 1227 break; |
| 1228 case GL_UNPACK_ALIGNMENT: | 1228 case GL_UNPACK_ALIGNMENT: |
| 1229 unpack_alignment_ = param; | 1229 unpack_alignment_ = param; |
| 1230 break; | 1230 break; |
| 1231 case GL_UNPACK_ROW_LENGTH: | 1231 case GL_UNPACK_ROW_LENGTH_EXT: |
| 1232 unpack_row_length_ = param; | 1232 unpack_row_length_ = param; |
| 1233 return; | 1233 return; |
| 1234 case GL_UNPACK_SKIP_ROWS: | 1234 case GL_UNPACK_SKIP_ROWS_EXT: |
| 1235 unpack_skip_rows_ = param; | 1235 unpack_skip_rows_ = param; |
| 1236 return; | 1236 return; |
| 1237 case GL_UNPACK_SKIP_PIXELS: | 1237 case GL_UNPACK_SKIP_PIXELS_EXT: |
| 1238 unpack_skip_pixels_ = param; | 1238 unpack_skip_pixels_ = param; |
| 1239 return; | 1239 return; |
| 1240 case GL_UNPACK_FLIP_Y_CHROMIUM: | 1240 case GL_UNPACK_FLIP_Y_CHROMIUM: |
| 1241 unpack_flip_y_ = (param != 0); | 1241 unpack_flip_y_ = (param != 0); |
| 1242 break; | 1242 break; |
| 1243 case GL_PACK_REVERSE_ROW_ORDER_ANGLE: | 1243 case GL_PACK_REVERSE_ROW_ORDER_ANGLE: |
| 1244 pack_reverse_row_order_ = | 1244 pack_reverse_row_order_ = |
| 1245 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false; | 1245 IsAnglePackReverseRowOrderAvailable() ? (param != 0) : false; |
| 1246 break; | 1246 break; |
| 1247 default: | 1247 default: |
| (...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3915 CheckGLError(); | 3915 CheckGLError(); |
| 3916 } | 3916 } |
| 3917 | 3917 |
| 3918 // Include the auto-generated part of this file. We split this because it means | 3918 // Include the auto-generated part of this file. We split this because it means |
| 3919 // we can easily edit the non-auto generated parts right here in this file | 3919 // we can easily edit the non-auto generated parts right here in this file |
| 3920 // instead of having to edit some template or the code generator. | 3920 // instead of having to edit some template or the code generator. |
| 3921 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" | 3921 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" |
| 3922 | 3922 |
| 3923 } // namespace gles2 | 3923 } // namespace gles2 |
| 3924 } // namespace gpu | 3924 } // namespace gpu |
| OLD | NEW |