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/gm/gmmain.cpp b/gm/gmmain.cpp index c1304a2..7be822a 100644 --- a/gm/gmmain.cpp +++ b/gm/gmmain.cpp
@@ -287,9 +287,7 @@ } SkAutoUnref canvasUnref(canvas); invokeGM(gm, canvas); - if (deferred) { - canvas->getDevice()->accessBitmap(false); // trigger a flush - } + canvas->flush(); } else { // GPU if (NULL == context) { return ERROR_NO_GPU_CONTEXT;