From 68c74884d0da1aa794bb660a37f31f2f9108bc36 Mon Sep 17 00:00:00 2001 From: "halcanary@google.com" Date: Fri, 24 Jan 2014 16:04:09 +0000 Subject: Revert "Turn NVPR on by default (but off in tools)." This reverts commit 83d81c96de34950bdd84dc575997a250b685a3d6. Broke Windows build. Autorevert didn't work. TBR=bsalomon@google.com,robertphillips@google.com NOTREECHECKS=true NOTRY=true NOPRESUBMIT=true BUG=skia:2042 Review URL: https://codereview.chromium.org/146863003 git-svn-id: http://skia.googlecode.com/svn/trunk@13169 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleApp.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'samplecode') diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 3b953f4846..127646d0d7 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -210,7 +210,6 @@ public: fMSAASampleCount = msaaSampleCount; SkASSERT(NULL == fCurIntf); - SkAutoTUnref glInterface; switch (win->getDeviceType()) { case kRaster_DeviceType: // fallthrough @@ -218,25 +217,21 @@ public: // fallthrough case kGPU_DeviceType: // all these guys use the native interface - glInterface.reset(GrGLCreateNativeInterface()); + fCurIntf = GrGLCreateNativeInterface(); break; #if SK_ANGLE case kANGLE_DeviceType: - glInterface.reset(GrGLCreateANGLEInterface()); + fCurIntf = GrGLCreateANGLEInterface(); break; #endif // SK_ANGLE case kNullGPU_DeviceType: - glInterface.reset(GrGLCreateNullInterface()); + fCurIntf = GrGLCreateNullInterface(); break; default: SkASSERT(false); break; } - // Currently SampleApp does not use NVPR. TODO: Provide an NVPR device type that is skipped - // when the driver doesn't support NVPR. - fCurIntf = GrGLInterfaceRemoveNVPR(glInterface.get()); - SkASSERT(NULL == fCurContext); fCurContext = GrContext::Create(kOpenGL_GrBackend, (GrBackendContext) fCurIntf); @@ -244,8 +239,6 @@ public: // We need some context and interface to see results SkSafeUnref(fCurContext); SkSafeUnref(fCurIntf); - fCurContext = NULL; - fCurIntf = NULL; SkDebugf("Failed to setup 3D"); win->detach(); -- cgit v1.2.3