diff options
| author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-05 21:16:14 +0000 |
|---|---|---|
| committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-04-05 21:16:14 +0000 |
| commit | 6dcf499d3578eff9ab5aead0d195fc0cb02c796b (patch) | |
| tree | cbdbe53c8914639640496754f1c4a235c90ce83b /samplecode/SampleApp.cpp | |
| parent | c9aa587f4aa204b1af0665546d151f121ed0532b (diff) | |
Fix dangling ptr when GrRenderTarget outlives its GrTexture representation
Move management of fRenderTarget ptr from GL texture class to base class
Minor:
Remove redundant GrContext-per-frame debug code in SampleApp.cpp
Add GrTexture.cpp to legacy VS2010 vcxproj
Review URL: http://codereview.appspot.com/4352051/
git-svn-id: http://skia.googlecode.com/svn/trunk@1061 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleApp.cpp')
| -rw-r--r-- | samplecode/SampleApp.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index e58fa26b08..1e8d9aabb3 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -804,12 +804,6 @@ void SampleWindow::afterChildren(SkCanvas* orig) { delete fGpuCanvas; fGpuCanvas = NULL; presentGL(); - -#if 1 - SkDebugf("---- destructor %d\n", fGrContext->refcnt()); - fGrContext->unref(); - fGrContext = NULL; -#endif break; #endif } |
