From: junov@chromium.org Date: Thu, 19 Jul 2012 21:00:07 +0000 (+0000) Subject: Fixing heap corruption issue in deferred canvas when using SkGPipe. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~15516 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a0d010e2dc1f837ce2eeb78186630f6bc194ed0;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h index 25aed36..38ee678 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