| 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 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 | 1002 |
| 1003 // Helper function for delete* (deleteBuffer, deleteProgram, etc) functions. | 1003 // Helper function for delete* (deleteBuffer, deleteProgram, etc) functions. |
| 1004 // Return false if caller should return without further processing. | 1004 // Return false if caller should return without further processing. |
| 1005 bool deleteObject(WebGLObject*); | 1005 bool deleteObject(WebGLObject*); |
| 1006 | 1006 |
| 1007 // Helper function for bind* (bindBuffer, bindTexture, etc) and useProgram. | 1007 // Helper function for bind* (bindBuffer, bindTexture, etc) and useProgram. |
| 1008 // If the object has already been deleted, set deleted to true upon return. | 1008 // If the object has already been deleted, set deleted to true upon return. |
| 1009 // Return false if caller should return without further processing. | 1009 // Return false if caller should return without further processing. |
| 1010 bool checkObjectToBeBound(const char* functionName, WebGLObject*, bool& dele
ted); | 1010 bool checkObjectToBeBound(const char* functionName, WebGLObject*, bool& dele
ted); |
| 1011 | 1011 |
| 1012 void dispatchContextLostEvent(Timer<WebGLRenderingContextBase>*); | 1012 void dispatchContextLostEvent(TimerBase*); |
| 1013 // Helper for restoration after context lost. | 1013 // Helper for restoration after context lost. |
| 1014 void maybeRestoreContext(Timer<WebGLRenderingContextBase>*); | 1014 void maybeRestoreContext(TimerBase*); |
| 1015 | 1015 |
| 1016 enum ConsoleDisplayPreference { | 1016 enum ConsoleDisplayPreference { |
| 1017 DisplayInConsole, | 1017 DisplayInConsole, |
| 1018 DontDisplayInConsole | 1018 DontDisplayInConsole |
| 1019 }; | 1019 }; |
| 1020 | 1020 |
| 1021 // Reports an error to glGetError, sends a message to the JavaScript | 1021 // Reports an error to glGetError, sends a message to the JavaScript |
| 1022 // console. | 1022 // console. |
| 1023 void synthesizeGLError(GLenum, const char* functionName, const char* descrip
tion, ConsoleDisplayPreference = DisplayInConsole); | 1023 void synthesizeGLError(GLenum, const char* functionName, const char* descrip
tion, ConsoleDisplayPreference = DisplayInConsole); |
| 1024 void emitGLWarning(const char* function, const char* reason); | 1024 void emitGLWarning(const char* function, const char* reason); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 const unsigned m_version; | 1116 const unsigned m_version; |
| 1117 }; | 1117 }; |
| 1118 | 1118 |
| 1119 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1119 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1120 | 1120 |
| 1121 } // namespace blink | 1121 } // namespace blink |
| 1122 | 1122 |
| 1123 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1123 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1124 | 1124 |
| 1125 #endif // WebGLRenderingContextBase_h | 1125 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |