| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 bool canUseTexImageCanvasByGPU(GLint internalformat, GLenum type); | 830 bool canUseTexImageCanvasByGPU(GLint internalformat, GLenum type); |
| 831 | 831 |
| 832 virtual WebGLImageConversion::PixelStoreParams getPackPixelStoreParams(); | 832 virtual WebGLImageConversion::PixelStoreParams getPackPixelStoreParams(); |
| 833 virtual WebGLImageConversion::PixelStoreParams getUnpackPixelStoreParams(); | 833 virtual WebGLImageConversion::PixelStoreParams getUnpackPixelStoreParams(); |
| 834 | 834 |
| 835 // Helper function for copyTex{Sub}Image, check whether the internalformat | 835 // Helper function for copyTex{Sub}Image, check whether the internalformat |
| 836 // and the color buffer format of the current bound framebuffer combination | 836 // and the color buffer format of the current bound framebuffer combination |
| 837 // is valid. | 837 // is valid. |
| 838 bool isTexInternalFormatColorBufferCombinationValid(GLenum texInternalFormat
, GLenum colorBufferFormat); | 838 bool isTexInternalFormatColorBufferCombinationValid(GLenum texInternalFormat
, GLenum colorBufferFormat); |
| 839 | 839 |
| 840 // Helper function to get the bound framebuffer's color buffer format. | |
| 841 virtual GLenum boundFramebufferColorFormat(); | |
| 842 | |
| 843 // Helper function to verify limits on the length of uniform and attribute l
ocations. | 840 // Helper function to verify limits on the length of uniform and attribute l
ocations. |
| 844 virtual unsigned getMaxWebGLLocationLength() const { return 256; } | 841 virtual unsigned getMaxWebGLLocationLength() const { return 256; } |
| 845 bool validateLocationLength(const char* functionName, const String&); | 842 bool validateLocationLength(const char* functionName, const String&); |
| 846 | 843 |
| 847 // Helper function to check if size is non-negative. | 844 // Helper function to check if size is non-negative. |
| 848 // Generate GL error and return false for negative inputs; otherwise, return
true. | 845 // Generate GL error and return false for negative inputs; otherwise, return
true. |
| 849 bool validateSize(const char* functionName, GLint x, GLint y, GLint z = 0); | 846 bool validateSize(const char* functionName, GLint x, GLint y, GLint z = 0); |
| 850 | 847 |
| 851 // Helper function to check if all characters in the string belong to the | 848 // Helper function to check if all characters in the string belong to the |
| 852 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1. | 849 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1. |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 #endif | 1120 #endif |
| 1124 }; | 1121 }; |
| 1125 | 1122 |
| 1126 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1123 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1127 | 1124 |
| 1128 } // namespace blink | 1125 } // namespace blink |
| 1129 | 1126 |
| 1130 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1127 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1131 | 1128 |
| 1132 #endif // WebGLRenderingContextBase_h | 1129 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |