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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h

Issue 2359723003: Implement OffscreenCanvas Accelerated 2D commit() (Closed)
Patch Set: Fix Created 4 years, 3 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/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,

Powered by Google App Engine
This is Rietveld 408576698