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

Unified Diff: Source/platform/DragImageTest.cpp

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix for overdraw optimization failures and fix for mac build Created 5 years, 8 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: Source/platform/DragImageTest.cpp
diff --git a/Source/platform/DragImageTest.cpp b/Source/platform/DragImageTest.cpp
index 6215d5800ed3cac55788ef29ee26bbf365fa806e..3c4530985befa313abb9bf7b39b3b51729268071 100644
--- a/Source/platform/DragImageTest.cpp
+++ b/Source/platform/DragImageTest.cpp
@@ -68,12 +68,12 @@ public:
m_bitmap.eraseColor(SK_ColorTRANSPARENT);
}
- virtual IntSize size() const override
+ IntSize size() const override
{
return m_size;
}
- virtual bool bitmapForCurrentFrame(SkBitmap* bitmap) override
+ bool bitmapForCurrentFrame(SkBitmap* bitmap) override
{
if (m_size.isZero())
return false;
@@ -83,16 +83,16 @@ public:
}
// Stub implementations of pure virtual Image functions.
- virtual void destroyDecodedData(bool) override
+ void destroyDecodedData(bool) override
{
}
- virtual bool currentFrameKnownToBeOpaque() override
+ bool currentFrameKnownToBeOpaque() override
{
return false;
}
- void draw(GraphicsContext*, const FloatRect&, const FloatRect&, SkXfermode::Mode, RespectImageOrientationEnum) override
+ void draw(SkCanvas*, const SkPaint&, const FloatRect&, const FloatRect&, RespectImageOrientationEnum) override
{
}

Powered by Google App Engine
This is Rietveld 408576698