Index: debugger/QT/SkGLWidget.cpp |
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp |
index 53b6fa4f6667b8f0ed91c6fd48e8251388c5f9d2..9ebb10530ff73ba5213604af19d91284bb6a8dd1 100644 |
--- a/debugger/QT/SkGLWidget.cpp |
+++ b/debugger/QT/SkGLWidget.cpp |
@@ -78,8 +78,8 @@ void SkGLWidget::paintGL() { |
GrBackendRenderTargetDesc SkGLWidget::getDesc(int w, int h) { |
GrBackendRenderTargetDesc desc; |
- desc.fWidth = SkScalarRound(this->width()); |
- desc.fHeight = SkScalarRound(this->height()); |
+ desc.fWidth = SkScalarRoundToInt(this->width()); |
+ desc.fHeight = SkScalarRoundToInt(this->height()); |
desc.fConfig = kSkia8888_GrPixelConfig; |
GR_GL_GetIntegerv(fCurIntf, GR_GL_SAMPLES, &desc.fSampleCnt); |
GR_GL_GetIntegerv(fCurIntf, GR_GL_STENCIL_BITS, &desc.fStencilBits); |