Index: src/image/SkImage_Gpu.cpp |
diff --git a/src/image/SkImage_Gpu.cpp b/src/image/SkImage_Gpu.cpp |
index eec0d1976001a7a3fddc23f797ca46089cde020d..7ccff17d9b09fd6946685b81dce25e865c966245 100644 |
--- a/src/image/SkImage_Gpu.cpp |
+++ b/src/image/SkImage_Gpu.cpp |
@@ -24,6 +24,15 @@ |
const SkMatrix* localMatrix) const |
{ |
return SkShader::CreateBitmapShader(fBitmap, tileX, tileY, localMatrix); |
+} |
+ |
+void SkImage_Gpu::onDraw(SkCanvas* canvas, SkScalar x, SkScalar y, const SkPaint* paint) const { |
+ canvas->drawBitmap(fBitmap, x, y, paint); |
+} |
+ |
+void SkImage_Gpu::onDrawRect(SkCanvas* canvas, const SkRect* src, const SkRect& dst, |
+ const SkPaint* paint) const { |
+ canvas->drawBitmapRectToRect(fBitmap, src, dst, paint); |
} |
SkSurface* SkImage_Gpu::onNewSurface(const SkImageInfo& info, const SkSurfaceProps& props) const { |