| 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 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 void restoreCurrentTexture2D(); | 1051 void restoreCurrentTexture2D(); |
| 1052 | 1052 |
| 1053 void findNewMaxNonDefaultTextureUnit(); | 1053 void findNewMaxNonDefaultTextureUnit(); |
| 1054 | 1054 |
| 1055 virtual void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum
internalformat, GLsizei width, GLsizei height, const char* functionName); | 1055 virtual void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum
internalformat, GLsizei width, GLsizei height, const char* functionName); |
| 1056 | 1056 |
| 1057 // Ensures that the JavaScript wrappers for objects that are | 1057 // Ensures that the JavaScript wrappers for objects that are |
| 1058 // latched into the context's state, or which are implicitly | 1058 // latched into the context's state, or which are implicitly |
| 1059 // linked together (like programs and their attached shaders), are | 1059 // linked together (like programs and their attached shaders), are |
| 1060 // not garbage collected before they should be. | 1060 // not garbage collected before they should be. |
| 1061 ScopedPersistent<v8::Array> m_2DTextureWrappers; | 1061 ScopedPersistent<v8::Array> m_wrappersOf2DTextures; |
| 1062 ScopedPersistent<v8::Array> m_2DArrayTextureWrappers; | 1062 ScopedPersistent<v8::Array> m_wrappersOf2DArrayTextures; |
| 1063 ScopedPersistent<v8::Array> m_3DTextureWrappers; | 1063 ScopedPersistent<v8::Array> m_wrappersOf3DTextures; |
| 1064 ScopedPersistent<v8::Array> m_cubeMapTextureWrappers; | 1064 ScopedPersistent<v8::Array> m_cubeMapTextureWrappers; |
| 1065 ScopedPersistent<v8::Array> m_extensionWrappers; | 1065 ScopedPersistent<v8::Array> m_extensionWrappers; |
| 1066 | 1066 |
| 1067 // The "catch-all" array for the rest of the preserved object | 1067 // The "catch-all" array for the rest of the preserved object |
| 1068 // wrappers. The enum below defines how the indices in this array | 1068 // wrappers. The enum below defines how the indices in this array |
| 1069 // are used. | 1069 // are used. |
| 1070 enum PreservedWrapperIndex { | 1070 enum PreservedWrapperIndex { |
| 1071 PreservedArrayBuffer, | 1071 PreservedArrayBuffer, |
| 1072 PreservedElementArrayBuffer, | 1072 PreservedElementArrayBuffer, |
| 1073 PreservedFramebuffer, | 1073 PreservedFramebuffer, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 bool isPaintable() const final { return drawingBuffer(); } | 1122 bool isPaintable() const final { return drawingBuffer(); } |
| 1123 }; | 1123 }; |
| 1124 | 1124 |
| 1125 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1125 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1126 | 1126 |
| 1127 } // namespace blink | 1127 } // namespace blink |
| 1128 | 1128 |
| 1129 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1129 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1130 | 1130 |
| 1131 #endif // WebGLRenderingContextBase_h | 1131 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |