| 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 // wrappers. The enum below defines how the indices in this array | 1050 // wrappers. The enum below defines how the indices in this array |
| 1051 // are used. | 1051 // are used. |
| 1052 enum PreservedWrapperIndex { | 1052 enum PreservedWrapperIndex { |
| 1053 PreservedArrayBuffer, | 1053 PreservedArrayBuffer, |
| 1054 PreservedElementArrayBuffer, | 1054 PreservedElementArrayBuffer, |
| 1055 PreservedFramebuffer, | 1055 PreservedFramebuffer, |
| 1056 PreservedProgram, | 1056 PreservedProgram, |
| 1057 PreservedRenderbuffer, | 1057 PreservedRenderbuffer, |
| 1058 PreservedDefaultVAO, | 1058 PreservedDefaultVAO, |
| 1059 PreservedVAO, | 1059 PreservedVAO, |
| 1060 PreservedTransformFeedback, |
| 1060 }; | 1061 }; |
| 1061 ScopedPersistent<v8::Array> m_miscWrappers; | 1062 ScopedPersistent<v8::Array> m_miscWrappers; |
| 1062 | 1063 |
| 1063 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec
t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten
tCache, uint32_t index, ScriptWrappable* targetObject); | 1064 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec
t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten
tCache, uint32_t index, ScriptWrappable* targetObject); |
| 1064 | 1065 |
| 1065 // Called to lazily instantiate the wrapper for the default VAO | 1066 // Called to lazily instantiate the wrapper for the default VAO |
| 1066 // during calls to bindBuffer and vertexAttribPointer (from | 1067 // during calls to bindBuffer and vertexAttribPointer (from |
| 1067 // JavaScript). | 1068 // JavaScript). |
| 1068 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); | 1069 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); |
| 1069 | 1070 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1092 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); | 1093 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); |
| 1093 }; | 1094 }; |
| 1094 | 1095 |
| 1095 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1096 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1096 | 1097 |
| 1097 } // namespace blink | 1098 } // namespace blink |
| 1098 | 1099 |
| 1099 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1100 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1100 | 1101 |
| 1101 #endif // WebGLRenderingContextBase_h | 1102 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |