OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2008 The Android Open Source Project | 3 * Copyright 2008 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #include "SkBitmap.h" | 10 #include "SkBitmap.h" |
(...skipping 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 } | 1608 } |
1609 } | 1609 } |
1610 #endif | 1610 #endif |
1611 } | 1611 } |
1612 #endif | 1612 #endif |
1613 | 1613 |
1614 #ifdef SK_DEVELOPER | 1614 #ifdef SK_DEVELOPER |
1615 void SkBitmap::toString(SkString* str) const { | 1615 void SkBitmap::toString(SkString* str) const { |
1616 | 1616 |
1617 static const char* gConfigNames[kConfigCount] = { | 1617 static const char* gConfigNames[kConfigCount] = { |
1618 "NONE", "A1", "A8", "INDEX8", "565", "4444", "8888", "RLE" | 1618 "NONE", "A1", "A8", "INDEX8", "565", "4444", "8888" |
1619 }; | 1619 }; |
1620 | 1620 |
1621 str->appendf("bitmap: ((%d, %d) %s", this->width(), this->height(), | 1621 str->appendf("bitmap: ((%d, %d) %s", this->width(), this->height(), |
1622 gConfigNames[this->config()]); | 1622 gConfigNames[this->config()]); |
1623 | 1623 |
1624 str->append(" ("); | 1624 str->append(" ("); |
1625 if (this->isOpaque()) { | 1625 if (this->isOpaque()) { |
1626 str->append("opaque"); | 1626 str->append("opaque"); |
1627 } else { | 1627 } else { |
1628 str->append("transparent"); | 1628 str->append("transparent"); |
(...skipping 14 matching lines...) Expand all Loading... |
1643 if (NULL != uri) { | 1643 if (NULL != uri) { |
1644 str->appendf(" uri:\"%s\"", uri); | 1644 str->appendf(" uri:\"%s\"", uri); |
1645 } else { | 1645 } else { |
1646 str->appendf(" pixelref:%p", pr); | 1646 str->appendf(" pixelref:%p", pr); |
1647 } | 1647 } |
1648 } | 1648 } |
1649 | 1649 |
1650 str->append(")"); | 1650 str->append(")"); |
1651 } | 1651 } |
1652 #endif | 1652 #endif |
OLD | NEW |