summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/platform_canvas_win.cc')
-rw-r--r--skia/ext/platform_canvas_win.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/platform_canvas_win.cc b/skia/ext/platform_canvas_win.cc
index ed0d6d7..a7d878f 100644
--- a/skia/ext/platform_canvas_win.cc
+++ b/skia/ext/platform_canvas_win.cc
@@ -118,4 +118,9 @@ SkDevice* PlatformCanvasWin::setBitmapDevice(const SkBitmap&) {
return NULL;
}
+// static
+size_t PlatformCanvasWin::StrideForWidth(unsigned width) {
+ return 4 * width;
+}
+
} // namespace skia