Index: experimental/iOSSampleApp/SkSampleUIView.mm |
diff --git a/experimental/iOSSampleApp/SkSampleUIView.mm b/experimental/iOSSampleApp/SkSampleUIView.mm |
index 421dfcf275369c98bff5103457fd73f535e57b5d..a6d00f7b0ef8debcf1335c9bf4662bfb919c923d 100644 |
--- a/experimental/iOSSampleApp/SkSampleUIView.mm |
+++ b/experimental/iOSSampleApp/SkSampleUIView.mm |
@@ -171,8 +171,8 @@ public: |
glBindFramebuffer(GL_FRAMEBUFFER, fLayerFBO); |
GrBackendRenderTargetDesc desc; |
- desc.fWidth = SkScalarRound(win->width()); |
- desc.fHeight = SkScalarRound(win->height()); |
+ desc.fWidth = SkScalarRoundToInt(win->width()); |
+ desc.fHeight = SkScalarRoundToInt(win->height()); |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fRenderTargetHandle = fLayerFBO; |
desc.fSampleCnt = info.fSampleCount; |