| 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 // This file is here so other GLES2 related files can have a common set of | 5 // This file is here so other GLES2 related files can have a common set of |
| 6 // includes where appropriate. | 6 // includes where appropriate. |
| 7 | 7 |
| 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
| 9 | 9 |
| 10 #include <GLES2/gl2.h> | 10 #include <GLES2/gl2.h> |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 | 1624 |
| 1625 // static | 1625 // static |
| 1626 bool GLES2Util::IsUnsignedIntegerFormat(uint32_t internal_format) { | 1626 bool GLES2Util::IsUnsignedIntegerFormat(uint32_t internal_format) { |
| 1627 switch (internal_format) { | 1627 switch (internal_format) { |
| 1628 case GL_R8UI: | 1628 case GL_R8UI: |
| 1629 case GL_R16UI: | 1629 case GL_R16UI: |
| 1630 case GL_R32UI: | 1630 case GL_R32UI: |
| 1631 case GL_RG8UI: | 1631 case GL_RG8UI: |
| 1632 case GL_RG16UI: | 1632 case GL_RG16UI: |
| 1633 case GL_RG32UI: | 1633 case GL_RG32UI: |
| 1634 case GL_RGB8UI: |
| 1635 case GL_RGB16UI: |
| 1636 case GL_RGB32UI: |
| 1634 case GL_RGBA8UI: | 1637 case GL_RGBA8UI: |
| 1635 case GL_RGB10_A2UI: | 1638 case GL_RGB10_A2UI: |
| 1636 case GL_RGBA16UI: | 1639 case GL_RGBA16UI: |
| 1637 case GL_RGBA32UI: | 1640 case GL_RGBA32UI: |
| 1638 return true; | 1641 return true; |
| 1639 default: | 1642 default: |
| 1640 return false; | 1643 return false; |
| 1641 } | 1644 } |
| 1642 } | 1645 } |
| 1643 | 1646 |
| 1644 // static | 1647 // static |
| 1645 bool GLES2Util::IsSignedIntegerFormat(uint32_t internal_format) { | 1648 bool GLES2Util::IsSignedIntegerFormat(uint32_t internal_format) { |
| 1646 switch (internal_format) { | 1649 switch (internal_format) { |
| 1647 case GL_R8I: | 1650 case GL_R8I: |
| 1648 case GL_R16I: | 1651 case GL_R16I: |
| 1649 case GL_R32I: | 1652 case GL_R32I: |
| 1650 case GL_RG8I: | 1653 case GL_RG8I: |
| 1651 case GL_RG16I: | 1654 case GL_RG16I: |
| 1652 case GL_RG32I: | 1655 case GL_RG32I: |
| 1656 case GL_RGB8I: |
| 1657 case GL_RGB16I: |
| 1658 case GL_RGB32I: |
| 1653 case GL_RGBA8I: | 1659 case GL_RGBA8I: |
| 1654 case GL_RGBA16I: | 1660 case GL_RGBA16I: |
| 1655 case GL_RGBA32I: | 1661 case GL_RGBA32I: |
| 1656 return true; | 1662 return true; |
| 1657 default: | 1663 default: |
| 1658 return false; | 1664 return false; |
| 1659 } | 1665 } |
| 1660 } | 1666 } |
| 1661 | 1667 |
| 1662 // static | 1668 // static |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 } | 1930 } |
| 1925 | 1931 |
| 1926 return true; | 1932 return true; |
| 1927 } | 1933 } |
| 1928 | 1934 |
| 1929 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" | 1935 #include "gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h" |
| 1930 | 1936 |
| 1931 } // namespace gles2 | 1937 } // namespace gles2 |
| 1932 } // namespace gpu | 1938 } // namespace gpu |
| 1933 | 1939 |
| OLD | NEW |