| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "gpu/command_buffer/service/gles2_cmd_validation.h" | 28 #include "gpu/command_buffer/service/gles2_cmd_validation.h" |
| 29 #include "gpu/command_buffer/service/program_manager.h" | 29 #include "gpu/command_buffer/service/program_manager.h" |
| 30 #include "gpu/command_buffer/service/renderbuffer_manager.h" | 30 #include "gpu/command_buffer/service/renderbuffer_manager.h" |
| 31 #include "gpu/command_buffer/service/shader_manager.h" | 31 #include "gpu/command_buffer/service/shader_manager.h" |
| 32 #include "gpu/command_buffer/service/texture_manager.h" | 32 #include "gpu/command_buffer/service/texture_manager.h" |
| 33 | 33 |
| 34 // TODO(alokp): Remove GLES2_GPU_SERVICE_TRANSLATE_SHADER guard | 34 // TODO(alokp): Remove GLES2_GPU_SERVICE_TRANSLATE_SHADER guard |
| 35 // as soon as translator is ready. | 35 // as soon as translator is ready. |
| 36 //#define GLES2_GPU_SERVICE_TRANSLATE_SHADER | 36 //#define GLES2_GPU_SERVICE_TRANSLATE_SHADER |
| 37 #if defined(GLES2_GPU_SERVICE_TRANSLATE_SHADER) | 37 #if defined(GLES2_GPU_SERVICE_TRANSLATE_SHADER) |
| 38 #include "third_party/angleproject/include/GLSLANG/ShaderLang.h" | 38 #include "third_party/angle/include/GLSLANG/ShaderLang.h" |
| 39 #endif // GLES2_GPU_SERVICE_TRANSLATE_SHADER | 39 #endif // GLES2_GPU_SERVICE_TRANSLATE_SHADER |
| 40 | 40 |
| 41 #if !defined(GL_DEPTH24_STENCIL8) | 41 #if !defined(GL_DEPTH24_STENCIL8) |
| 42 #define GL_DEPTH24_STENCIL8 0x88F0 | 42 #define GL_DEPTH24_STENCIL8 0x88F0 |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #if defined(UNIT_TEST) | 45 #if defined(UNIT_TEST) |
| 46 | 46 |
| 47 // OpenGL constants not defined in OpenGL ES 2.0 needed when compiling | 47 // OpenGL constants not defined in OpenGL ES 2.0 needed when compiling |
| 48 // unit tests. For native OpenGL ES 2.0 backend these are not used. For OpenGL | 48 // unit tests. For native OpenGL ES 2.0 backend these are not used. For OpenGL |
| (...skipping 3558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3607 return error::kNoError; | 3607 return error::kNoError; |
| 3608 } | 3608 } |
| 3609 | 3609 |
| 3610 // Include the auto-generated part of this file. We split this because it means | 3610 // Include the auto-generated part of this file. We split this because it means |
| 3611 // we can easily edit the non-auto generated parts right here in this file | 3611 // we can easily edit the non-auto generated parts right here in this file |
| 3612 // instead of having to edit some template or the code generator. | 3612 // instead of having to edit some template or the code generator. |
| 3613 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 3613 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 3614 | 3614 |
| 3615 } // namespace gles2 | 3615 } // namespace gles2 |
| 3616 } // namespace gpu | 3616 } // namespace gpu |
| OLD | NEW |