| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 init.request_alpha = true; | 837 init.request_alpha = true; |
| 838 init.bind_generates_resource = true; | 838 init.bind_generates_resource = true; |
| 839 init.context_type = CONTEXT_TYPE_OPENGLES3; | 839 init.context_type = CONTEXT_TYPE_OPENGLES3; |
| 840 InitDecoder(init); | 840 InitDecoder(init); |
| 841 | 841 |
| 842 struct UnsizedSizedInternalFormat { | 842 struct UnsizedSizedInternalFormat { |
| 843 GLenum unsized; | 843 GLenum unsized; |
| 844 GLenum sized; | 844 GLenum sized; |
| 845 }; | 845 }; |
| 846 UnsizedSizedInternalFormat kUnsizedInternalFormats[] = { | 846 UnsizedSizedInternalFormat kUnsizedInternalFormats[] = { |
| 847 {GL_RED, GL_R8}, | 847 // GL_RED and GL_RG should not work. |
| 848 {GL_RG, GL_RG8}, | |
| 849 {GL_RGB, GL_RGB8}, | 848 {GL_RGB, GL_RGB8}, |
| 850 {GL_RGBA, GL_RGBA8}, | 849 {GL_RGBA, GL_RGBA8}, |
| 851 {GL_BGRA_EXT, GL_RGBA8}, | 850 {GL_BGRA_EXT, GL_RGBA8}, |
| 852 {GL_LUMINANCE, GL_RGB8}, | 851 {GL_LUMINANCE, GL_RGB8}, |
| 853 {GL_LUMINANCE_ALPHA, GL_RGBA8}, | 852 {GL_LUMINANCE_ALPHA, GL_RGBA8}, |
| 854 }; | 853 }; |
| 855 GLenum target = GL_TEXTURE_2D; | 854 GLenum target = GL_TEXTURE_2D; |
| 856 GLint level = 0; | 855 GLint level = 0; |
| 857 GLsizei width = 2; | 856 GLsizei width = 2; |
| 858 GLsizei height = 4; | 857 GLsizei height = 4; |
| (...skipping 3824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4683 // TODO(gman): CompressedTexSubImage2DImmediate | 4682 // TODO(gman): CompressedTexSubImage2DImmediate |
| 4684 | 4683 |
| 4685 // TODO(gman): TexImage2D | 4684 // TODO(gman): TexImage2D |
| 4686 | 4685 |
| 4687 // TODO(gman): TexImage2DImmediate | 4686 // TODO(gman): TexImage2DImmediate |
| 4688 | 4687 |
| 4689 // TODO(gman): TexSubImage2DImmediate | 4688 // TODO(gman): TexSubImage2DImmediate |
| 4690 | 4689 |
| 4691 } // namespace gles2 | 4690 } // namespace gles2 |
| 4692 } // namespace gpu | 4691 } // namespace gpu |
| OLD | NEW |