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/gles2_cmd_copy_texture_chromium.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 case GL_ALPHA: | 136 case GL_ALPHA: |
137 sourceFormatIndex = S_FORMAT_ALPHA; | 137 sourceFormatIndex = S_FORMAT_ALPHA; |
138 break; | 138 break; |
139 case GL_LUMINANCE: | 139 case GL_LUMINANCE: |
140 sourceFormatIndex = S_FORMAT_LUMINANCE; | 140 sourceFormatIndex = S_FORMAT_LUMINANCE; |
141 break; | 141 break; |
142 case GL_LUMINANCE_ALPHA: | 142 case GL_LUMINANCE_ALPHA: |
143 sourceFormatIndex = S_FORMAT_LUMINANCE_ALPHA; | 143 sourceFormatIndex = S_FORMAT_LUMINANCE_ALPHA; |
144 break; | 144 break; |
145 case GL_RED: | 145 case GL_RED: |
| 146 case GL_R16_EXT: |
146 sourceFormatIndex = S_FORMAT_RED; | 147 sourceFormatIndex = S_FORMAT_RED; |
147 break; | 148 break; |
148 case GL_RGB: | 149 case GL_RGB: |
149 sourceFormatIndex = S_FORMAT_RGB; | 150 sourceFormatIndex = S_FORMAT_RGB; |
150 break; | 151 break; |
151 case GL_RGBA: | 152 case GL_RGBA: |
152 sourceFormatIndex = S_FORMAT_RGBA; | 153 sourceFormatIndex = S_FORMAT_RGBA; |
153 break; | 154 break; |
154 case GL_RGB8: | 155 case GL_RGB8: |
155 sourceFormatIndex = S_FORMAT_RGB8; | 156 sourceFormatIndex = S_FORMAT_RGB8; |
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 decoder->RestoreTextureUnitBindings(0); | 1344 decoder->RestoreTextureUnitBindings(0); |
1344 decoder->RestoreActiveTexture(); | 1345 decoder->RestoreActiveTexture(); |
1345 decoder->RestoreProgramBindings(); | 1346 decoder->RestoreProgramBindings(); |
1346 decoder->RestoreBufferBindings(); | 1347 decoder->RestoreBufferBindings(); |
1347 decoder->RestoreFramebufferBindings(); | 1348 decoder->RestoreFramebufferBindings(); |
1348 decoder->RestoreGlobalState(); | 1349 decoder->RestoreGlobalState(); |
1349 } | 1350 } |
1350 | 1351 |
1351 } // namespace gles2 | 1352 } // namespace gles2 |
1352 } // namespace gpu | 1353 } // namespace gpu |
OLD | NEW |