mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
f918a60e22
As per the spec, we should allow one to create ImageBitmaps, and call CanvasRenderingContext2D's drawImage and createPattern using an OffscreenCanvas. Differential Revision: https://phabricator.services.mozilla.com/D133808
23 lines
884 B
C++
23 lines
884 B
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et cindent: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_dom_ImageBitmapSource_h
|
|
#define mozilla_dom_ImageBitmapSource_h
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
// So we don't have to forward declare this elsewhere.
|
|
class
|
|
HTMLImageElementOrSVGImageElementOrHTMLCanvasElementOrHTMLVideoElementOrOffscreenCanvasOrImageBitmapOrBlobOrCanvasRenderingContext2DOrImageData;
|
|
typedef HTMLImageElementOrSVGImageElementOrHTMLCanvasElementOrHTMLVideoElementOrOffscreenCanvasOrImageBitmapOrBlobOrCanvasRenderingContext2DOrImageData
|
|
ImageBitmapSource;
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|
|
|
|
#endif
|