| Index: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| index 779d6a88f055e11b74eff905aa9350ac381763b0..cf9f6bf0d20781c4c8340bd2b9b273c940c5227b 100644
|
| --- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| +++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp
|
| @@ -105,14 +105,14 @@ const double secondsBetweenRestoreAttempts = 1.0;
|
| const int maxGLErrorsAllowedToConsole = 256;
|
| const unsigned maxGLActiveContexts = 16;
|
|
|
| -using WebGLRenderingContextBaseSet = WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<WebGLRenderingContextBase>>;
|
| +using WebGLRenderingContextBaseSet = PersistentHeapHashSet<WeakMember<WebGLRenderingContextBase>>;
|
| WebGLRenderingContextBaseSet& activeContexts()
|
| {
|
| DEFINE_STATIC_LOCAL(WebGLRenderingContextBaseSet, activeContexts, ());
|
| return activeContexts;
|
| }
|
|
|
| -using WebGLRenderingContextBaseMap = WillBePersistentHeapHashMap<RawPtrWillBeWeakMember<WebGLRenderingContextBase>, int>;
|
| +using WebGLRenderingContextBaseMap = PersistentHeapHashMap<WeakMember<WebGLRenderingContextBase>, int>;
|
| WebGLRenderingContextBaseMap& forciblyEvictedContexts()
|
| {
|
| DEFINE_STATIC_LOCAL(WebGLRenderingContextBaseMap, forciblyEvictedContexts, ());
|
| @@ -131,7 +131,7 @@ void WebGLRenderingContextBase::forciblyLoseOldestContext(const String& reason)
|
| // been lost. Garbage collection might be triggered in the middle of this function, for
|
| // example, printWarningToConsole() causes an upcall to JavaScript.
|
| // Must make sure that the context is not deleted until the call stack unwinds.
|
| - RefPtrWillBeRawPtr<WebGLRenderingContextBase> protect(candidate);
|
| + RawPtr<WebGLRenderingContextBase> protect(candidate);
|
|
|
| candidate->printWarningToConsole(reason);
|
| InspectorInstrumentation::didFireWebGLWarning(candidate->canvas());
|
| @@ -460,7 +460,7 @@ public:
|
| }
|
|
|
| private:
|
| - RawPtrWillBeMember<WebGLRenderingContextBase> m_context;
|
| + Member<WebGLRenderingContextBase> m_context;
|
| };
|
|
|
| class ScopedFramebufferRestorer {
|
| @@ -477,7 +477,7 @@ public:
|
| }
|
|
|
| private:
|
| - RawPtrWillBeMember<WebGLRenderingContextBase> m_context;
|
| + Member<WebGLRenderingContextBase> m_context;
|
| };
|
|
|
| class WebGLRenderingContextLostCallback final : public GarbageCollectedFinalized<WebGLRenderingContextLostCallback>, public WebGraphicsContext3D::WebGraphicsContextLostCallback {
|
| @@ -500,7 +500,7 @@ private:
|
| explicit WebGLRenderingContextLostCallback(WebGLRenderingContextBase* context)
|
| : m_context(context) { }
|
|
|
| - RawPtrWillBeMember<WebGLRenderingContextBase> m_context;
|
| + Member<WebGLRenderingContextBase> m_context;
|
| };
|
|
|
| class WebGLRenderingContextErrorMessageCallback final : public GarbageCollectedFinalized<WebGLRenderingContextErrorMessageCallback>, public WebGraphicsContext3D::WebGraphicsErrorMessageCallback {
|
| @@ -528,7 +528,7 @@ private:
|
| explicit WebGLRenderingContextErrorMessageCallback(WebGLRenderingContextBase* context)
|
| : m_context(context) { }
|
|
|
| - RawPtrWillBeMember<WebGLRenderingContextBase> m_context;
|
| + Member<WebGLRenderingContextBase> m_context;
|
| };
|
|
|
| static void formatWebGLStatusString(const String& glInfo, const String& infostring, String& statusMessage)
|
| @@ -4469,7 +4469,7 @@ void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLint int
|
| }
|
|
|
| void WebGLRenderingContextBase::texImage2D(GLenum target, GLint level, GLint internalformat,
|
| - GLenum format, GLenum type, PassRefPtrWillBeRawPtr<ImageBitmap> bitmap, ExceptionState& exceptionState)
|
| + GLenum format, GLenum type, RawPtr<ImageBitmap> bitmap, ExceptionState& exceptionState)
|
| {
|
| ASSERT(bitmap->bitmapImage());
|
| if (isContextLost() || !validateImageBitmap("texImage2D", bitmap.get(), exceptionState) || !validateTexFunc("texImage2D", TexImage, SourceImageBitmap, target, level, internalformat, bitmap->width(), bitmap->height(), 1, 0, format, type, 0, 0, 0))
|
| @@ -4691,7 +4691,7 @@ void WebGLRenderingContextBase::texSubImage2D(GLenum target, GLint level, GLint
|
| }
|
|
|
| void WebGLRenderingContextBase::texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
|
| - GLenum format, GLenum type, PassRefPtrWillBeRawPtr<ImageBitmap> bitmap, ExceptionState& exceptionState)
|
| + GLenum format, GLenum type, RawPtr<ImageBitmap> bitmap, ExceptionState& exceptionState)
|
| {
|
| ASSERT(bitmap->bitmapImage());
|
| if (isContextLost() || !validateImageBitmap("texSubImage2D", bitmap.get(), exceptionState) || !validateTexFunc("texSubImage2D", TexSubImage, SourceImageBitmap, target, level, 0, bitmap->width(), bitmap->height(), 1, 0, format, type, 0, 0, 0))
|
| @@ -6464,7 +6464,7 @@ bool WebGLRenderingContextBase::validateDrawElements(const char* functionName, G
|
|
|
| void WebGLRenderingContextBase::dispatchContextLostEvent(Timer<WebGLRenderingContextBase>*)
|
| {
|
| - RefPtrWillBeRawPtr<WebGLContextEvent> event = WebGLContextEvent::create(EventTypeNames::webglcontextlost, false, true, "");
|
| + RawPtr<WebGLContextEvent> event = WebGLContextEvent::create(EventTypeNames::webglcontextlost, false, true, "");
|
| canvas()->dispatchEvent(event);
|
| m_restoreAllowed = event->defaultPrevented();
|
| if (m_restoreAllowed) {
|
|
|