summaryrefslogtreecommitdiffstats
path: root/skia/ext/platform_canvas_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'skia/ext/platform_canvas_mac.cc')
-rwxr-xr-xskia/ext/platform_canvas_mac.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/skia/ext/platform_canvas_mac.cc b/skia/ext/platform_canvas_mac.cc
index 4acbaa6..380a78b 100755
--- a/skia/ext/platform_canvas_mac.cc
+++ b/skia/ext/platform_canvas_mac.cc
@@ -76,4 +76,9 @@ SkDevice* PlatformCanvasMac::setBitmapDevice(const SkBitmap&) {
return NULL;
}
+// static
+size_t PlatformCanvasMac::StrideForWidth(unsigned width) {
+ return 4 * width;
+}
+
} // namespace skia