Changeset 250386 in webkit
- Timestamp:
- Sep 26, 2019 10:49:47 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250385 r250386 1 2019-09-26 Truitt Savell <tsavell@apple.com> 2 3 Unreviewed, rolling out r250381. 4 5 broke multiple webgpu/ tests on Mojave WK2 6 7 Reverted changeset: 8 9 "Flaky Test: inspector/canvas/updateShader.html" 10 https://bugs.webkit.org/show_bug.cgi?id=202186 11 https://trac.webkit.org/changeset/250381 12 1 13 2019-09-26 Alexey Shvayka <shvaikalesh@gmail.com> 2 14 -
trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.cpp
r250381 r250386 58 58 WebGPUPipeline::WebGPUPipeline(WebGPUDevice& device, GPUErrorScopes& errorScopes) 59 59 : GPUObjectBase(makeRef(errorScopes)) 60 , ContextDestructionObserver(device.scriptExecutionContext())60 , m_scriptExecutionContext(device.scriptExecutionContext()) 61 61 { 62 ASSERT( scriptExecutionContext());62 ASSERT(m_scriptExecutionContext); 63 63 64 64 { … … 79 79 } 80 80 81 void WebGPUPipeline::contextDestroyed()82 {83 InspectorInstrumentation::willDestroyWebGPUPipeline(*this);84 85 ContextDestructionObserver::contextDestroyed();86 }87 88 81 } // namespace WebCore 89 82 -
trunk/Source/WebCore/Modules/webgpu/WebGPUPipeline.h
r250381 r250386 28 28 #if ENABLE(WEBGPU) 29 29 30 #include "ContextDestructionObserver.h"31 30 #include "GPUObjectBase.h" 32 31 #include "WebGPUShaderModule.h" … … 39 38 class WebGPUDevice; 40 39 41 class WebGPUPipeline : public GPUObjectBase , public ContextDestructionObserver{40 class WebGPUPipeline : public GPUObjectBase { 42 41 public: 43 42 virtual ~WebGPUPipeline(); … … 46 45 static Lock& instancesMutex(); 47 46 48 void contextDestroyed() final;49 50 47 virtual bool isRenderPipeline() const { return false; } 51 48 virtual bool isComputePipeline() const { return false; } 52 49 50 ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; } 53 51 virtual bool isValid() const = 0; 54 52 … … 62 60 protected: 63 61 WebGPUPipeline(WebGPUDevice&, GPUErrorScopes&); 62 63 ScriptExecutionContext* m_scriptExecutionContext; 64 64 }; 65 65 -
trunk/Source/WebCore/html/canvas/WebGLProgram.cpp
r250381 r250386 63 63 WebGLProgram::WebGLProgram(WebGLRenderingContextBase& ctx) 64 64 : WebGLSharedObject(ctx) 65 , ContextDestructionObserver(ctx.scriptExecutionContext())66 { 67 ASSERT( scriptExecutionContext());65 , m_scriptExecutionContext(ctx.scriptExecutionContext()) 66 { 67 ASSERT(m_scriptExecutionContext); 68 68 69 69 { … … 86 86 instances(lock).remove(this); 87 87 } 88 }89 90 void WebGLProgram::contextDestroyed()91 {92 InspectorInstrumentation::willDestroyWebGLProgram(*this);93 94 ContextDestructionObserver::contextDestroyed();95 88 } 96 89 -
trunk/Source/WebCore/html/canvas/WebGLProgram.h
r250381 r250386 28 28 #if ENABLE(WEBGL) 29 29 30 #include "ContextDestructionObserver.h"31 30 #include "WebGLSharedObject.h" 32 31 #include <wtf/Forward.h> … … 38 37 class WebGLShader; 39 38 40 class WebGLProgram final : public WebGLSharedObject , public ContextDestructionObserver{39 class WebGLProgram final : public WebGLSharedObject { 41 40 public: 42 41 static Ref<WebGLProgram> create(WebGLRenderingContextBase&); … … 46 45 static Lock& instancesMutex(); 47 46 48 void contextDestroyed() final;47 ScriptExecutionContext* scriptExecutionContext() const { return m_scriptExecutionContext; } 49 48 50 49 unsigned numActiveAttribLocations(); … … 77 76 void cacheInfoIfNeeded(); 78 77 78 ScriptExecutionContext* m_scriptExecutionContext; 79 79 80 Vector<GC3Dint> m_activeAttribLocations; 80 81
Note: See TracChangeset
for help on using the changeset viewer.