Deleted Added
sdiff udiff text old ( 12334:e0ab29a34764 ) new ( 12392:e0dbdf30a2a5 )
full compact
1/*
2 * Copyright (c) 2017 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 45 unchanged lines hidden (view full) ---

54 switch (type) {
55 case Enums::Auto:
56 // The Auto option allows gem5 to choose automatically the
57 // writer type, and it will choose for the best fit in
58 // performance.
59 // gem5 will try PNG first, and it will fallback to BMP if not
60 // available.
61
62 /* FALLTHROUGH */
63#if USE_PNG
64 case Enums::Png:
65 return std::unique_ptr<PngWriter>(new PngWriter(fb));
66#endif
67 case Enums::Bitmap:
68 return std::unique_ptr<BmpWriter>(new BmpWriter(fb));
69 default:
70 warn("Invalid Image Type specified, defaulting to Bitmap\n");
71 return std::unique_ptr<BmpWriter>(new BmpWriter(fb));
72 }
73}