| 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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 // Return the least recently used context's position in the active context v
ector. | 1082 // Return the least recently used context's position in the active context v
ector. |
| 1083 // If the vector is empty, return the maximum allowed active context number. | 1083 // If the vector is empty, return the maximum allowed active context number. |
| 1084 static WebGLRenderingContextBase* oldestContext(); | 1084 static WebGLRenderingContextBase* oldestContext(); |
| 1085 static WebGLRenderingContextBase* oldestEvictedContext(); | 1085 static WebGLRenderingContextBase* oldestEvictedContext(); |
| 1086 | 1086 |
| 1087 CrossThreadWeakPersistentThisPointer<WebGLRenderingContextBase> createWeakTh
isPointer() { return CrossThreadWeakPersistentThisPointer<WebGLRenderingContextB
ase>(this); } | 1087 CrossThreadWeakPersistentThisPointer<WebGLRenderingContextBase> createWeakTh
isPointer() { return CrossThreadWeakPersistentThisPointer<WebGLRenderingContextB
ase>(this); } |
| 1088 | 1088 |
| 1089 private: | 1089 private: |
| 1090 WebGLRenderingContextBase(HTMLCanvasElement*, OffscreenCanvas*, PassOwnPtr<W
ebGraphicsContext3DProvider>, const WebGLContextAttributes&); | 1090 WebGLRenderingContextBase(HTMLCanvasElement*, OffscreenCanvas*, PassOwnPtr<W
ebGraphicsContext3DProvider>, const WebGLContextAttributes&); |
| 1091 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); | 1091 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna
l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); |
| 1092 class ContextProviderCreationInfo; | |
| 1093 static void createContextProviderOnMainThread(ContextProviderCreationInfo*,
WaitableEvent*); | |
| 1094 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderOnWorke
rThread(Platform::ContextAttributes, Platform::GraphicsInfo, ScriptState*); | |
| 1095 }; | 1092 }; |
| 1096 | 1093 |
| 1097 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); | 1094 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co
ntext->is3d(), context.is3d()); |
| 1098 | 1095 |
| 1099 } // namespace blink | 1096 } // namespace blink |
| 1100 | 1097 |
| 1101 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); | 1098 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB
ase::TextureUnitState); |
| 1102 | 1099 |
| 1103 #endif // WebGLRenderingContextBase_h | 1100 #endif // WebGLRenderingContextBase_h |
| OLD | NEW |