Diff
Modified: trunk/Source/WebCore/ChangeLog (250385 => 250386)
--- trunk/Source/WebCore/ChangeLog 2019-09-26 17:43:24 UTC (rev 250385)
+++ trunk/Source/WebCore/ChangeLog 2019-09-26 17:49:47 UTC (rev 250386)
@@ -1,3 +1,15 @@
+2019-09-26 Truitt Savell <[email protected]>
+
+ Unreviewed, rolling out r250381.
+
+ broke multiple webgpu/ tests on Mojave WK2
+
+ Reverted changeset:
+
+ "Flaky Test: inspector/canvas/updateShader.html"
+ https://bugs.webkit.org/show_bug.cgi?id=202186
+ https://trac.webkit.org/changeset/250381
+
2019-09-26 Alexey Shvayka <[email protected]>
Non-callable "handleEvent" property is silently ignored
Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.cpp (250385 => 250386)
--- trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.cpp 2019-09-26 17:43:24 UTC (rev 250385)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.cpp 2019-09-26 17:49:47 UTC (rev 250386)
@@ -57,9 +57,9 @@
WebGPUPipeline::WebGPUPipeline(WebGPUDevice& device, GPUErrorScopes& errorScopes)
: GPUObjectBase(makeRef(errorScopes))
- , ContextDestructionObserver(device.scriptExecutionContext())
+ , m_scriptExecutionContext(device.scriptExecutionContext())
{
- ASSERT(scriptExecutionContext());
+ ASSERT(m_scriptExecutionContext);
{
LockHolder lock(instancesMutex());
@@ -78,13 +78,6 @@
}
}
-void WebGPUPipeline::contextDestroyed()
-{
- InspectorInstrumentation::willDestroyWebGPUPipeline(*this);
-
- ContextDestructionObserver::contextDestroyed();
-}
-
} // namespace WebCore
#endif // ENABLE(WEBGPU)
Modified: trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.h (250385 => 250386)
--- trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.h 2019-09-26 17:43:24 UTC (rev 250385)
+++ trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.h 2019-09-26 17:49:47 UTC (rev 250386)
@@ -27,7 +27,6 @@
#if ENABLE(WEBGPU)
-#include "ContextDestructionObserver.h"
#include "GPUObjectBase.h"
#include "WebGPUShaderModule.h"
#include <wtf/Forward.h>
@@ -38,7 +37,7 @@
class GPUErrorScopes;
class WebGPUDevice;
-class WebGPUPipeline : public GPUObjectBase, public ContextDestructionObserver {
+class WebGPUPipeline : public GPUObjectBase {
public:
virtual ~WebGPUPipeline();
@@ -45,11 +44,10 @@
static HashMap<WebGPUPipeline*, WebGPUDevice*>& instances(const LockHolder&);
static Lock& instancesMutex();
- void contextDestroyed() final;
-
virtual bool isRenderPipeline() const { return false; }
virtual bool isComputePipeline() const { return false; }
+ ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; }
virtual bool isValid() const = 0;
struct ShaderData {
@@ -61,6 +59,8 @@
protected:
WebGPUPipeline(WebGPUDevice&, GPUErrorScopes&);
+
+ ScriptExecutionContext* m_scriptExecutionContext;
};
} // namespace WebCore
Modified: trunk/Source/WebCore/html/canvas/WebGLProgram.cpp (250385 => 250386)
--- trunk/Source/WebCore/html/canvas/WebGLProgram.cpp 2019-09-26 17:43:24 UTC (rev 250385)
+++ trunk/Source/WebCore/html/canvas/WebGLProgram.cpp 2019-09-26 17:49:47 UTC (rev 250386)
@@ -62,9 +62,9 @@
WebGLProgram::WebGLProgram(WebGLRenderingContextBase& ctx)
: WebGLSharedObject(ctx)
- , ContextDestructionObserver(ctx.scriptExecutionContext())
+ , m_scriptExecutionContext(ctx.scriptExecutionContext())
{
- ASSERT(scriptExecutionContext());
+ ASSERT(m_scriptExecutionContext);
{
LockHolder lock(instancesMutex());
@@ -87,13 +87,6 @@
}
}
-void WebGLProgram::contextDestroyed()
-{
- InspectorInstrumentation::willDestroyWebGLProgram(*this);
-
- ContextDestructionObserver::contextDestroyed();
-}
-
void WebGLProgram::deleteObjectImpl(GraphicsContext3D* context3d, Platform3DObject obj)
{
context3d->deleteProgram(obj);
Modified: trunk/Source/WebCore/html/canvas/WebGLProgram.h (250385 => 250386)
--- trunk/Source/WebCore/html/canvas/WebGLProgram.h 2019-09-26 17:43:24 UTC (rev 250385)
+++ trunk/Source/WebCore/html/canvas/WebGLProgram.h 2019-09-26 17:49:47 UTC (rev 250386)
@@ -27,7 +27,6 @@
#if ENABLE(WEBGL)
-#include "ContextDestructionObserver.h"
#include "WebGLSharedObject.h"
#include <wtf/Forward.h>
@@ -37,7 +36,7 @@
class WebGLRenderingContextBase;
class WebGLShader;
-class WebGLProgram final : public WebGLSharedObject, public ContextDestructionObserver {
+class WebGLProgram final : public WebGLSharedObject {
public:
static Ref<WebGLProgram> create(WebGLRenderingContextBase&);
virtual ~WebGLProgram();
@@ -45,7 +44,7 @@
static HashMap<WebGLProgram*, WebGLRenderingContextBase*>& instances(const LockHolder&);
static Lock& instancesMutex();
- void contextDestroyed() final;
+ ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; }
unsigned numActiveAttribLocations();
GC3Dint getActiveAttribLocation(GC3Duint index);
@@ -76,6 +75,8 @@
void cacheActiveAttribLocations(GraphicsContext3D*);
void cacheInfoIfNeeded();
+ ScriptExecutionContext* m_scriptExecutionContext;
+
Vector<GC3Dint> m_activeAttribLocations;
GC3Dint m_linkStatus { 0 };