| 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 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 }; | 1069 }; |
| 1070 ScopedPersistent<v8::Array> m_miscWrappers; | 1070 ScopedPersistent<v8::Array> m_miscWrappers; |
| 1071 | 1071 |
| 1072 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec
t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten
tCache, uint32_t index, ScriptWrappable* targetObject); | 1072 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec
t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten
tCache, uint32_t index, ScriptWrappable* targetObject); |
| 1073 | 1073 |
| 1074 // Called to lazily instantiate the wrapper for the default VAO | 1074 // Called to lazily instantiate the wrapper for the default VAO |
| 1075 // during calls to bindBuffer and vertexAttribPointer (from | 1075 // during calls to bindBuffer and vertexAttribPointer (from |
| 1076 // JavaScript). | 1076 // JavaScript). |
| 1077 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); | 1077 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); |
| 1078 | 1078 |
| 1079 virtual bool transformFeedbackActive() const { return false; } | |
| 1080 virtual bool transformFeedbackPaused() const { return false; } | |
| 1081 | |
| 1082 friend class WebGLStateRestorer; | 1079 friend class WebGLStateRestorer; |
| 1083 friend class WebGLRenderingContextEvictionManager; | 1080 friend class WebGLRenderingContextEvictionManager; |
| 1084 | 1081 |
| 1085 static void activateContext(WebGLRenderingContextBase*); | 1082 static void activateContext(WebGLRenderingContextBase*); |
| 1086 static void deactivateContext(WebGLRenderingContextBase*); | 1083 static void deactivateContext(WebGLRenderingContextBase*); |
| 1087 static void addToEvictedList(WebGLRenderingContextBase*); | 1084 static void addToEvictedList(WebGLRenderingContextBase*); |
| 1088 static void removeFromEvictedList(WebGLRenderingContextBase*); | 1085 static void removeFromEvictedList(WebGLRenderingContextBase*); |
| 1089 static void willDestroyContext(WebGLRenderingContextBase*); | 1086 static void willDestroyContext(WebGLRenderingContextBase*); |
| 1090 static void forciblyLoseOldestContext(const String& reason); | 1087 static void forciblyLoseOldestContext(const String& reason); |
| 1091 // Return the least recently used context's position in the active context v
ector. | 1088 // Return the least recently used context's position in the active context v
ector. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1111 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); | 1108 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); |
| 1112 }; | 1109 }; |
| 1113 | 1110 |
| 1114 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1111 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1115 | 1112 |
| 1116 } // namespace blink | 1113 } // namespace blink |
| 1117 | 1114 |
| 1118 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1115 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1119 | 1116 |
| 1120 #endif // WebGLRenderingContextBase_h | 1117 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |