commit | bf6c1e4aff4d233f6502157fb73459cf69d0ab37 | [log] [tgz] |
---|---|---|
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 30 14:53:22 2012 +0000 |
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | Mon Jan 30 14:53:22 2012 +0000 |
tree | ec9762e984341b8825bf06829ec5a696ce38b519 | |
parent | 9aed114505a06679bbc7fa836e224aae82b3e5f4 [diff] [blame] |
Adding a flush method to SkCanvas BUG=http://code.google.com/p/skia/issues/detail?id=467 REVIEW=http://codereview.appspot.com/5600044/ TEST=gm uses the new code path on all its test cases git-svn-id: http://skia.googlecode.com/svn/trunk@3102 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 2a5a748..ed65eca 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp
@@ -470,6 +470,13 @@ /////////////////////////////////////////////////////////////////////////////// +void SkCanvas::flush() { + SkDevice* device = this->getDevice(); + if (device) { + device->flush(); + } +} + SkISize SkCanvas::getDeviceSize() const { SkDevice* d = this->getDevice(); return d ? SkISize::Make(d->width(), d->height()) : SkISize::Make(0, 0);