Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 1549143002: Add thread affinity and ASSERT() for same-thread restriction to WTF::Function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TRV_ThreadSafeBindByVariadicTemplate
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index 327b27e7277a09a397ab4cf5c74a90b2723d4a11..5ea2af0890567d4a1b4e16696827b2a5b2453c1b 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -170,7 +170,7 @@ public:
// Otherwise, bind to the default FBO.
void restoreFramebufferBindings();
- void addNewMailboxCallback(PassOwnPtr<Closure> closure) { m_newMailboxCallback = std::move(closure); }
+ void addNewMailboxCallback(PassOwnPtr<SameThreadClosure> closure) { m_newMailboxCallback = std::move(closure); }
protected: // For unittests
DrawingBuffer(
@@ -313,7 +313,7 @@ private:
};
FrontBufferInfo m_frontColorBuffer;
- OwnPtr<Closure> m_newMailboxCallback;
+ OwnPtr<SameThreadClosure> m_newMailboxCallback;
// This is used when the user requests either a depth or stencil buffer.
Platform3DObject m_depthStencilBuffer;
« no previous file with comments | « third_party/WebKit/Source/platform/WebThreadSupportingGC.h ('k') | third_party/WebKit/Source/platform/heap/HeapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine