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
This commit is contained in:
junov@chromium.org 2012-07-19 21:00:07 +00:00
parent 585d9b1912
commit 6a0d010e2d

View File

@ -320,8 +320,8 @@ public:
void beginRecording();
#if SK_DEFERRED_CANVAS_USES_GPIPE
SkGPipeWriter fPipeWriter;
DeferredPipeController fPipeController;
SkGPipeWriter fPipeWriter;
#else
SkPicture fPicture;
#endif