| 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 #include "gpu/command_buffer/service/program_manager.h" | 5 #include "gpu/command_buffer/service/program_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 break; | 221 break; |
| 222 | 222 |
| 223 case GL_SAMPLER_2D: | 223 case GL_SAMPLER_2D: |
| 224 case GL_SAMPLER_2D_RECT_ARB: | 224 case GL_SAMPLER_2D_RECT_ARB: |
| 225 case GL_SAMPLER_CUBE: | 225 case GL_SAMPLER_CUBE: |
| 226 case GL_SAMPLER_3D_OES: | 226 case GL_SAMPLER_3D_OES: |
| 227 case GL_SAMPLER_EXTERNAL_OES: | 227 case GL_SAMPLER_EXTERNAL_OES: |
| 228 case GL_SAMPLER_2D_ARRAY: | 228 case GL_SAMPLER_2D_ARRAY: |
| 229 case GL_SAMPLER_2D_SHADOW: | 229 case GL_SAMPLER_2D_SHADOW: |
| 230 case GL_SAMPLER_2D_ARRAY_SHADOW: | 230 case GL_SAMPLER_2D_ARRAY_SHADOW: |
| 231 case GL_SAMPLER_CUBE_SHADOW: |
| 231 case GL_INT_SAMPLER_2D: | 232 case GL_INT_SAMPLER_2D: |
| 232 case GL_INT_SAMPLER_3D: | 233 case GL_INT_SAMPLER_3D: |
| 233 case GL_INT_SAMPLER_CUBE: | 234 case GL_INT_SAMPLER_CUBE: |
| 234 case GL_INT_SAMPLER_2D_ARRAY: | 235 case GL_INT_SAMPLER_2D_ARRAY: |
| 235 case GL_UNSIGNED_INT_SAMPLER_2D: | 236 case GL_UNSIGNED_INT_SAMPLER_2D: |
| 236 case GL_UNSIGNED_INT_SAMPLER_3D: | 237 case GL_UNSIGNED_INT_SAMPLER_3D: |
| 237 case GL_UNSIGNED_INT_SAMPLER_CUBE: | 238 case GL_UNSIGNED_INT_SAMPLER_CUBE: |
| 238 case GL_UNSIGNED_INT_SAMPLER_2D_ARRAY: | 239 case GL_UNSIGNED_INT_SAMPLER_2D_ARRAY: |
| 239 accepts_api_type = kUniform1i; | 240 accepts_api_type = kUniform1i; |
| 240 break; | 241 break; |
| (...skipping 2142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2383 DCHECK(program); | 2384 DCHECK(program); |
| 2384 program->ClearUniforms(&zero_); | 2385 program->ClearUniforms(&zero_); |
| 2385 } | 2386 } |
| 2386 | 2387 |
| 2387 int32_t ProgramManager::MakeFakeLocation(int32_t index, int32_t element) { | 2388 int32_t ProgramManager::MakeFakeLocation(int32_t index, int32_t element) { |
| 2388 return index + element * 0x10000; | 2389 return index + element * 0x10000; |
| 2389 } | 2390 } |
| 2390 | 2391 |
| 2391 } // namespace gles2 | 2392 } // namespace gles2 |
| 2392 } // namespace gpu | 2393 } // namespace gpu |
| OLD | NEW |