Index: src/image/SkSurface.cpp |
diff --git a/src/image/SkSurface.cpp b/src/image/SkSurface.cpp |
index edc6ef5fa0e6dd225a0b22b453605f3587c52789..9f24e97c50529888edef62144043880ffb57a8d8 100644 |
--- a/src/image/SkSurface.cpp |
+++ b/src/image/SkSurface.cpp |
@@ -80,10 +80,7 @@ SkSurface::SkSurface(int width, int height) : fWidth(width), fHeight(height) { |
fGenerationID = 0; |
} |
-SkSurface::SkSurface(const SkImageInfo& info) |
- : fWidth(info.fWidth) |
- , fHeight(info.fHeight) |
-{ |
+SkSurface::SkSurface(const SkImageInfo& info) : fWidth(info.width()), fHeight(info.height()) { |
SkASSERT(fWidth >= 0); |
SkASSERT(fHeight >= 0); |
fGenerationID = 0; |