Index: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
index ac0bf036a7d7b3aea2e96dd9429544a2680bfa88..ab44abfb8ce2966620e7a4bb000f1a3b2a7ae2d4 100644 |
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h |
@@ -39,6 +39,7 @@ public: |
~OffscreenCanvasRenderingContext2D() override; |
ContextType getContextType() const override { return Context2d; } |
bool is2d() const override { return true; } |
+ bool isAccelerated() const override; |
void setOffscreenCanvasGetContextResult(OffscreenRenderingContext&) final; |
void setIsHidden(bool) final { ASSERT_NOT_REACHED(); } |
void stop() final { ASSERT_NOT_REACHED(); } |
@@ -86,6 +87,8 @@ private: |
std::unique_ptr<ImageBuffer> m_imageBuffer; |
bool isPaintable() const final; |
+ |
+ PassRefPtr<StaticBitmapImage> transferToStaticBitmapImage(); |
xidachen
2016/09/22 19:05:55
Please change this to RefPtr<> instead of PassRefP
xlai (Olivia)
2016/09/22 19:36:18
Done.
|
}; |
DEFINE_TYPE_CASTS(OffscreenCanvasRenderingContext2D, CanvasRenderingContext, context, |