blob: 47097472b1c03a15e4a806ea39fe4c6b039a0820 [file] [log] [blame]
commit-bot@chromium.org85fd1932014-05-15 16:10:37 +00001/*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef DumpRecord_DEFINED
8#define DumpRecord_DEFINED
9
10class SkRecord;
11class SkCanvas;
12
13/**
14 * Draw the record to the supplied canvas via SkRecords::Draw, while
15 * printing each draw command and run time in microseconds to stdout.
16 *
17 * @param timeWithCommand If true, print time next to command, else in
18 * first column.
19 */
20void DumpRecord(const SkRecord& record,
21 SkCanvas* canvas,
22 bool timeWithCommand);
23
24#endif // DumpRecord_DEFINED