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

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

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.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.cpp b/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.cpp
deleted file mode 100644
index c227f47b8ebb341cdb2628e2f5ab8eab2e1c1dfe..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/html/canvas/OffscreenCanvas.cpp
+++ /dev/null
@@ -1,35 +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.
-
-#include "core/html/canvas/OffscreenCanvas.h"
-
-#include "wtf/MathExtras.h"
-
-namespace blink {
-
-OffscreenCanvas* OffscreenCanvas::create(unsigned width, unsigned height)
-{
- return new OffscreenCanvas(IntSize(clampTo<int>(width), clampTo<int>(height)));
-}
-
-void OffscreenCanvas::setWidth(unsigned width)
-{
- m_size.setWidth(clampTo<int>(width));
-}
-
-void OffscreenCanvas::setHeight(unsigned height)
-{
- m_size.setHeight(clampTo<int>(height));
-}
-
-OffscreenCanvas::OffscreenCanvas(const IntSize& size)
- : m_size(size)
-{
-}
-
-DEFINE_TRACE(OffscreenCanvas)
-{
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698