diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-19 21:00:07 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-07-19 21:00:07 +0000 |
commit | 6a0d010e2dc1f837ce2eeb78186630f6bc194ed0 (patch) | |
tree | 749bb10204d0923a6e42964a6c1be6552975028e /include | |
parent | 585d9b1912ac3830131b8fb9154fa1c19cabc791 (diff) |
Fixing heap corruption issue in deferred canvas when using SkGPipe.
Swapping the declaration order of fPipeController and fPipeWriter to
make sure that the writer is destroyed first before the controller.
Review URL: https://codereview.appspot.com/6427054
git-svn-id: http://skia.googlecode.com/svn/trunk@4682 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/SkDeferredCanvas.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h index 25aed36c48..38ee678152 100644 --- a/include/utils/SkDeferredCanvas.h +++ b/include/utils/SkDeferredCanvas.h @@ -320,8 +320,8 @@ public: void beginRecording(); #if SK_DEFERRED_CANVAS_USES_GPIPE - SkGPipeWriter fPipeWriter; DeferredPipeController fPipeController; + SkGPipeWriter fPipeWriter; #else SkPicture fPicture; #endif |