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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h

Issue 1945903003: Demonstration: postIdleTask does not work when users do not move mouse Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
index 3f038c276abdaa800e33b509a2acaadf6bb1604e..232a8fc7a941ccc68cc01474a9ac68ec62bef3c0 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.h
@@ -11,6 +11,7 @@
#include "wtf/OwnPtr.h"
#include "wtf/Vector.h"
#include "wtf/text/WTFString.h"
+#include <iostream>
namespace blink {
@@ -31,8 +32,8 @@ public:
IdleTaskNotSupported // Idle tasks are not implemented for some image types
};
// Methods are virtual for mocking in unit tests
- virtual void signalTaskSwitchInStartTimeoutEventForTesting() { }
- virtual void signalTaskSwitchInCompleteTimeoutEventForTesting() { }
+ virtual void signalTaskSwitchInStartTimeoutEventForTesting() { std::cout << "Idle task starts too slow! Have to switch to non-idle task at StartTimeoutEvent" << std::endl; }
+ virtual void signalTaskSwitchInCompleteTimeoutEventForTesting() { std::cout << "Idle task paused for too long! Have to switch to non-idle task at CompleteTimeoutEvent" << std::endl; }
DEFINE_INLINE_VIRTUAL_TRACE()
{
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/canvas/CanvasAsyncBlobCreator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698