Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp

Issue 2049003002: Wrap GCed raw pointer parameters of WTF::bind with Persistent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
index 423c670d15256365477b6fa4417b0ec205732354..8292602ae93763ec6fcc0a3c591fb939862c9ad2 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
@@ -78,8 +78,7 @@ public:
protected:
void scheduleInitiatePngEncoding() override
{
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE,
- bind(&MockCanvasAsyncBlobCreatorWithoutCompletePng::initiatePngEncoding, this, std::numeric_limits<double>::max()));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&MockCanvasAsyncBlobCreatorWithoutCompletePng::initiatePngEncoding, wrapPersistent(this), std::numeric_limits<double>::max()));
}
void idleEncodeRowsPng(double deadlineSeconds) override
@@ -118,8 +117,7 @@ public:
protected:
void scheduleInitiateJpegEncoding(const double& quality) override
{
- Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE,
- bind(&MockCanvasAsyncBlobCreatorWithoutCompleteJpeg::initiateJpegEncoding, this, quality, std::numeric_limits<double>::max()));
+ Platform::current()->mainThread()->getWebTaskRunner()->postTask(BLINK_FROM_HERE, bind(&MockCanvasAsyncBlobCreatorWithoutCompleteJpeg::initiateJpegEncoding, wrapPersistent(this), quality, std::numeric_limits<double>::max()));
}
void idleEncodeRowsJpeg(double deadlineSeconds) override

Powered by Google App Engine
This is Rietveld 408576698