DumpRecord.h 621 B

123456789101112131415161718192021222324
  1. /*
  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. class SkRecord;
  10. class SkCanvas;
  11. /**
  12. * Draw the record to the supplied canvas via SkRecords::Draw, while
  13. * printing each draw command and run time in microseconds to stdout.
  14. *
  15. * @param timeWithCommand If true, print time next to command, else in
  16. * first column.
  17. */
  18. void DumpRecord(const SkRecord& record,
  19. SkCanvas* canvas,
  20. bool timeWithCommand);
  21. #endif // DumpRecord_DEFINED