Skip to content

Commit

Permalink
Fix unified build issues after 267037@main part 3
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260521
rdar://problem/114260537

Unreviewed, unified build fix.

* Source/WebCore/html/canvas/WebGLObject.cpp:
(WebCore::WebGLObject::validate const):
* Source/WebCore/html/canvas/WebGLObject.h:
(WebCore::WebGLObject::validate const): Deleted.

Canonical link: https://commits.webkit.org/267133@main
  • Loading branch information
kkinnunen-apple committed Aug 22, 2023
1 parent dfa4214 commit f1d958f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Source/WebCore/html/canvas/WebGLObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ void WebGLObject::onDetached(const AbstractLocker& locker, GraphicsContextGL* co
deleteObject(locker, context3d);
}

bool WebGLObject::validate(const WebGLRenderingContextBase& context) const
{
return &context == m_context;
}

WebCoreOpaqueRoot root(WebGLObject* object)
{
return WebCoreOpaqueRoot { object };
Expand Down
2 changes: 1 addition & 1 deletion Source/WebCore/html/canvas/WebGLObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class WebGLObject : public RefCounted<WebGLObject> {
bool isDeleted() const { return m_deleted; }

// True if this object belongs to the context.
bool validate(const WebGLRenderingContextBase& context) const { return &context == m_context; }
bool validate(const WebGLRenderingContextBase&) const;

Lock& objectGraphLockForContext();

Expand Down

0 comments on commit f1d958f

Please sign in to comment.