Fixing heap corruption issue in deferred canvas when using SkGPipe.
authorjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Jul 2012 21:00:07 +0000 (21:00 +0000)
committerjunov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 Jul 2012 21:00:07 +0000 (21:00 +0000)
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

include/utils/SkDeferredCanvas.h

index 25aed36c4849dd813d6985969721c5b5afac1354..38ee67815246c360ca982284e4f4ed57ab579ae9 100644 (file)
@@ -320,8 +320,8 @@ public:
         void beginRecording();
 
 #if SK_DEFERRED_CANVAS_USES_GPIPE
-        SkGPipeWriter  fPipeWriter;
         DeferredPipeController fPipeController;
+        SkGPipeWriter  fPipeWriter;
 #else
         SkPicture fPicture;
 #endif