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

Unified Diff: sky/engine/core/frame/ImageBitmap.h

Issue 1001913003: Remove <canvas> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/ImageBitmap.h
diff --git a/sky/engine/core/frame/ImageBitmap.h b/sky/engine/core/frame/ImageBitmap.h
index dff744be52cb2f70674ce961415977589c2b4553..fb64a98b0367703f738e7ccc88131a8921422bc2 100644
--- a/sky/engine/core/frame/ImageBitmap.h
+++ b/sky/engine/core/frame/ImageBitmap.h
@@ -7,7 +7,6 @@
#include "sky/engine/tonic/dart_wrappable.h"
#include "sky/engine/core/html/HTMLImageElement.h"
-#include "sky/engine/core/html/canvas/CanvasImageSource.h"
#include "sky/engine/platform/geometry/IntRect.h"
#include "sky/engine/platform/graphics/Image.h"
#include "sky/engine/platform/heap/Handle.h"
@@ -16,14 +15,12 @@
namespace blink {
-class HTMLCanvasElement;
class ImageData;
-class ImageBitmap final : public RefCounted<ImageBitmap>, public DartWrappable, public ImageLoaderClient, public CanvasImageSource {
+class ImageBitmap final : public RefCounted<ImageBitmap>, public DartWrappable, public ImageLoaderClient {
DEFINE_WRAPPERTYPEINFO();
public:
static PassRefPtr<ImageBitmap> create(HTMLImageElement*, const IntRect&);
- static PassRefPtr<ImageBitmap> create(HTMLCanvasElement*, const IntRect&);
static PassRefPtr<ImageBitmap> create(ImageData*, const IntRect&);
static PassRefPtr<ImageBitmap> create(ImageBitmap*, const IntRect&);
static PassRefPtr<ImageBitmap> create(Image*, const IntRect&);
@@ -39,14 +36,8 @@ public:
virtual ~ImageBitmap();
- // CanvasImageSource implementation
- virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceImageStatus*) const override;
- virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const override;
- virtual FloatSize sourceSize() const override;
-
private:
ImageBitmap(HTMLImageElement*, const IntRect&);
- ImageBitmap(HTMLCanvasElement*, const IntRect&);
ImageBitmap(ImageData*, const IntRect&);
ImageBitmap(ImageBitmap*, const IntRect&);
ImageBitmap(Image*, const IntRect&);
« no previous file with comments | « sky/engine/core/editing/Editor.cpp ('k') | sky/engine/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698