lgtm On Fri, Feb 8, 2013 at 4:19 PM, <robertphillips@google.com> wrote: > Reviewers: bsalomon, > > Description: > Fix uninitialized Render Target origin issue in debugger > > Please review this at https://codereview.appspot.**com/7314066/<https://codereview.appspot.com/7314... > > Affected files: > M debugger/QT/SkGLWidget.cpp > > > Index: debugger/QT/SkGLWidget.cpp > ==============================**==============================**======= > --- debugger/QT/SkGLWidget.cpp (revision 7680) > +++ debugger/QT/SkGLWidget.cpp (working copy) > @@ -29,6 +29,7 @@ > fCurIntf = GrGLCreateNativeInterface(); > fCurContext = GrContext::Create(kOpenGL_**GrBackend, > (GrBackendContext) fCurIntf); > GrBackendRenderTargetDesc desc = this->getDesc(this->width(), > this->height()); > + desc.fOrigin = kBottomLeft_GrSurfaceOrigin; > GrRenderTarget* curRenderTarget = fCurContext->** > wrapBackendRenderTarget(desc); > fGpuDevice = new SkGpuDevice(fCurContext, curRenderTarget); > fCanvas = new SkCanvas(fGpuDevice); > @@ -41,6 +42,7 @@ > > void SkGLWidget::resizeGL(int w, int h) { > GrBackendRenderTargetDesc desc = this->getDesc(w, h); > + desc.fOrigin = kBottomLeft_GrSurfaceOrigin; > GrRenderTarget* curRenderTarget = fCurContext->** > wrapBackendRenderTarget(desc); > SkSafeUnref(fGpuDevice); > SkSafeUnref(fCanvas); > > >
lgtm
committed as r7682