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

Unified Diff: third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.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: Make OffscreenCanvasRenderingContext Modules exportable" Created 4 years, 9 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/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.h
deleted file mode 100644
index a9a14b258f0d9d592f2e886709f52d3fa3fca45d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 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.
-
-#ifndef OffscreenCanvas_h
-#define OffscreenCanvas_h
-
-#include "bindings/core/v8/ScriptPromise.h"
-#include "bindings/core/v8/ScriptState.h"
-#include "bindings/core/v8/ScriptWrappable.h"
-#include "core/CoreExport.h"
-#include "platform/geometry/IntSize.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class CORE_EXPORT OffscreenCanvas final : public GarbageCollectedFinalized<OffscreenCanvas>, public ScriptWrappable {
- DEFINE_WRAPPERTYPEINFO();
-public:
- static OffscreenCanvas* create(unsigned width, unsigned height);
-
- IntSize size() const { return m_size; }
- unsigned width() const { return m_size.width(); }
- unsigned height() const { return m_size.height(); }
-
- void setWidth(unsigned);
- void setHeight(unsigned);
-
- DECLARE_VIRTUAL_TRACE();
-
-private:
- OffscreenCanvas(const IntSize&);
-
- IntSize m_size;
-};
-
-} // namespace blink
-
-#endif // OffscreenCanvas_h

Powered by Google App Engine
This is Rietveld 408576698