OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 "GrContext.h" | 10 #include "GrContext.h" |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 return; | 635 return; |
636 } | 636 } |
637 } | 637 } |
638 // by definition this fills the entire clip, no need for AA | 638 // by definition this fills the entire clip, no need for AA |
639 if (paint->isAntiAlias()) { | 639 if (paint->isAntiAlias()) { |
640 paint.writable()->setAntiAlias(false); | 640 paint.writable()->setAntiAlias(false); |
641 } | 641 } |
642 this->drawRect(*paint, r); | 642 this->drawRect(*paint, r); |
643 } | 643 } |
644 | 644 |
| 645 #ifdef SK_DEVELOPER |
| 646 void GrContext::dumpFontCache() const { |
| 647 fFontCache->dump(); |
| 648 } |
| 649 #endif |
| 650 |
645 //////////////////////////////////////////////////////////////////////////////// | 651 //////////////////////////////////////////////////////////////////////////////// |
646 | 652 |
647 namespace { | 653 namespace { |
648 inline bool disable_coverage_aa_for_blend(GrDrawTarget* target) { | 654 inline bool disable_coverage_aa_for_blend(GrDrawTarget* target) { |
649 return DISABLE_COVERAGE_AA_FOR_BLEND && !target->canApplyCoverage(); | 655 return DISABLE_COVERAGE_AA_FOR_BLEND && !target->canApplyCoverage(); |
650 } | 656 } |
651 } | 657 } |
652 | 658 |
653 //////////////////////////////////////////////////////////////////////////////// | 659 //////////////////////////////////////////////////////////////////////////////// |
654 | 660 |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 return NULL; | 1749 return NULL; |
1744 } | 1750 } |
1745 } | 1751 } |
1746 | 1752 |
1747 /////////////////////////////////////////////////////////////////////////////// | 1753 /////////////////////////////////////////////////////////////////////////////// |
1748 #if GR_CACHE_STATS | 1754 #if GR_CACHE_STATS |
1749 void GrContext::printCacheStats() const { | 1755 void GrContext::printCacheStats() const { |
1750 fTextureCache->printStats(); | 1756 fTextureCache->printStats(); |
1751 } | 1757 } |
1752 #endif | 1758 #endif |
OLD | NEW |