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

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

Issue 1508023002: Add TimedCanvasDrawListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spec-change
Patch Set: Created 5 years 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/CanvasDrawListener.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h b/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h
index b1fc834dc496811d193393a7c1e1d6abdbaf61eb..55d4a4313a08c3abce783a4593ff8f3c9705adc1 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebCanvasCaptureHandler.h"
#include "third_party/skia/include/core/SkImage.h"
#include "wtf/PassRefPtr.h"
@@ -14,9 +15,14 @@ namespace blink {
class CORE_EXPORT CanvasDrawListener : public GarbageCollectedMixin {
public:
- virtual ~CanvasDrawListener() {}
- virtual bool needsNewFrame() const = 0;
- virtual void sendNewFrame(const WTF::PassRefPtr<SkImage>&) = 0;
+ virtual ~CanvasDrawListener();
+ virtual bool needsNewFrame() const;
+ virtual void sendNewFrame(const WTF::PassRefPtr<SkImage>&);
+
+protected:
+ explicit CanvasDrawListener(const PassOwnPtr<WebCanvasCaptureHandler>);
+
+ OwnPtr<WebCanvasCaptureHandler> m_handler;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/html/canvas/CanvasDrawListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698