diff options
author | halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 16:04:09 +0000 |
---|---|---|
committer | halcanary@google.com <halcanary@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 16:04:09 +0000 |
commit | 68c74884d0da1aa794bb660a37f31f2f9108bc36 (patch) | |
tree | 15e0fd795d0fd88b28763ae145923c883dae9571 /samplecode | |
parent | 0ded88d431a1872e21986984f009db2e84f52738 (diff) |
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
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
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<const GrGLInterface> 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(); |