Index: experimental/SkiaExamples/SkExample.cpp |
diff --git a/experimental/SkiaExamples/SkExample.cpp b/experimental/SkiaExamples/SkExample.cpp |
index d4adaf49249d28daf7db0c526f59218cbd4f9128..15b24d0e5cb8a95c76024c53d85112c3220b69b0 100644 |
--- a/experimental/SkiaExamples/SkExample.cpp |
+++ b/experimental/SkiaExamples/SkExample.cpp |
@@ -93,8 +93,8 @@ bool SkExampleWindow::setupBackend(DeviceType type) { |
void SkExampleWindow::setupRenderTarget() { |
GrBackendRenderTargetDesc desc; |
- desc.fWidth = SkScalarRound(width()); |
- desc.fHeight = SkScalarRound(height()); |
+ desc.fWidth = SkScalarRoundToInt(width()); |
+ desc.fHeight = SkScalarRoundToInt(height()); |
desc.fConfig = kSkia8888_GrPixelConfig; |
desc.fOrigin = kBottomLeft_GrSurfaceOrigin; |
desc.fSampleCnt = fAttachmentInfo.fSampleCount; |