| 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 865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 // Helper function for texParameterf and texParameteri. | 876 // Helper function for texParameterf and texParameteri. |
| 877 void texParameter(GLenum target, GLenum pname, GLfloat paramf, GLint parami,
bool isFloat); | 877 void texParameter(GLenum target, GLenum pname, GLfloat paramf, GLint parami,
bool isFloat); |
| 878 | 878 |
| 879 // Helper function to print GL errors to console. | 879 // Helper function to print GL errors to console. |
| 880 void printGLErrorToConsole(const String&); | 880 void printGLErrorToConsole(const String&); |
| 881 | 881 |
| 882 // Helper function to print warnings to console. Currently | 882 // Helper function to print warnings to console. Currently |
| 883 // used only to warn about use of obsolete functions. | 883 // used only to warn about use of obsolete functions. |
| 884 void printWarningToConsole(const String&); | 884 void printWarningToConsole(const String&); |
| 885 | 885 |
| 886 // Helper function to validate the target for checkFramebufferStatus and val
idateFramebufferFuncParameters. |
| 887 virtual bool validateFramebufferTarget(GLenum target); |
| 888 |
| 889 // Get the framebuffer bound to given target |
| 890 virtual WebGLFramebuffer* getFramebufferBinding(GLenum target); |
| 891 |
| 886 // Helper function to validate input parameters for framebuffer functions. | 892 // Helper function to validate input parameters for framebuffer functions. |
| 887 // Generate GL error if parameters are illegal. | 893 // Generate GL error if parameters are illegal. |
| 888 bool validateFramebufferFuncParameters(const char* functionName, GLenum targ
et, GLenum attachment); | 894 bool validateFramebufferFuncParameters(const char* functionName, GLenum targ
et, GLenum attachment); |
| 889 | 895 |
| 890 // Helper function to validate blend equation mode. | 896 // Helper function to validate blend equation mode. |
| 891 bool validateBlendEquation(const char* functionName, GLenum); | 897 bool validateBlendEquation(const char* functionName, GLenum); |
| 892 | 898 |
| 893 // Helper function to validate blend func factors. | 899 // Helper function to validate blend func factors. |
| 894 bool validateBlendFuncFactors(const char* functionName, GLenum src, GLenum d
st); | 900 bool validateBlendFuncFactors(const char* functionName, GLenum src, GLenum d
st); |
| 895 | 901 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 static IntSize oldestContextSize(); | 1013 static IntSize oldestContextSize(); |
| 1008 }; | 1014 }; |
| 1009 | 1015 |
| 1010 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1016 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1011 | 1017 |
| 1012 } // namespace blink | 1018 } // namespace blink |
| 1013 | 1019 |
| 1014 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1020 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1015 | 1021 |
| 1016 #endif // WebGLRenderingContextBase_h | 1022 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |