Fix pipe/annotation.

We weren't keeping track of the annotation that's on the other side of the pipe.

BUG=skia:1761
R=scroggo@google.com

Author: mtklein@google.com

Review URL: https://codereview.chromium.org/48273011

git-svn-id: http://skia.googlecode.com/svn/trunk@12004 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
commit-bot@chromium.org 2013-10-29 19:23:26 +00:00
parent 4259ef3dbd
commit 40258a5be9
2 changed files with 1 additions and 4 deletions

View File

@ -50,10 +50,6 @@ protected:
canvas->restore();
}
virtual uint32_t onGetFlags() const {
return kSkipPipe_Flag;
}
private:
/** Draw an arbitrary rectangle at a given location and label it with some
* text. */

View File

@ -1141,6 +1141,7 @@ void SkGPipeCanvas::writePaint(const SkPaint& paint) {
fWriter.write32(size);
fWriter.write(storage.get(), size);
}
base.setAnnotation(paint.getAnnotation());
}
}