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

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

Issue 2613733002: Enforce OffscreenCanvas.convertToBlob to terminate after idling for too long (Closed)
Patch Set: rebase and fix based on junov feedback Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f803460c92bb937e1f469274aa77c8bb5ec6460d..6a771c16b7c781820ff5b717016c17642157476e 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreatorTest.cpp
@@ -41,16 +41,16 @@ class MockCanvasAsyncBlobCreator : public CanvasAsyncBlobCreator {
void createBlobAndReturnResult() override{};
void createNullAndReturnResult() override{};
void signalAlternativeCodePathFinishedForTesting() override;
- void postDelayedTaskToMainThread(const WebTraceLocation&,
- std::unique_ptr<WTF::Closure>,
- double delayMs) override;
+ void postDelayedTaskToCurrentThread(const WebTraceLocation&,
+ std::unique_ptr<WTF::Closure>,
+ double delayMs) override;
};
void MockCanvasAsyncBlobCreator::signalAlternativeCodePathFinishedForTesting() {
testing::exitRunLoop();
}
-void MockCanvasAsyncBlobCreator::postDelayedTaskToMainThread(
+void MockCanvasAsyncBlobCreator::postDelayedTaskToCurrentThread(
const WebTraceLocation& location,
std::unique_ptr<WTF::Closure> task,
double delayMs) {
« no previous file with comments | « third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698