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

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

Issue 1748163003: Add rendering context and rendering 2D context to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove CanvasRenderingContextBase Created 4 years, 10 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/OffscreenCanvasRenderingContextFactory.h
diff --git a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvasRenderingContextFactory.h b/third_party/WebKit/Source/core/html/canvas/OffscreenCanvasRenderingContextFactory.h
new file mode 100644
index 0000000000000000000000000000000000000000..0a6776dc8a9dc938e54ceea199a8bbc8f5fb651f
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/canvas/OffscreenCanvasRenderingContextFactory.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class CanvasContextCreationAttributes;
+class OffscreenCanvas;
+class OffscreenCanvasRenderingContext;
+
+class CORE_EXPORT OffscreenCanvasRenderingContextFactory {
+ USING_FAST_MALLOC(OffscreenCanvasRenderingContextFactory);
+ WTF_MAKE_NONCOPYABLE(OffscreenCanvasRenderingContextFactory);
+public:
+ OffscreenCanvasRenderingContextFactory() = default;
+ virtual ~OffscreenCanvasRenderingContextFactory() { }
+
+ virtual PassOwnPtrWillBeRawPtr<OffscreenCanvasRenderingContext> create(OffscreenCanvas*, const CanvasContextCreationAttributes&) = 0;
+ virtual OffscreenCanvasRenderingContext::ContextType contextType() const = 0;
+ virtual void onError(OffscreenCanvas*, const String& error) = 0;
+};
+
+} // namespace blink
+

Powered by Google App Engine
This is Rietveld 408576698