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 | |
robertphillips
2013/10/02 15:07:28
SK_DEBUG? DEV?
| |
646 void GrContext::dumpFontCache() { | |
647 fFontCache->dump(); | |
648 } | |
649 | |
645 //////////////////////////////////////////////////////////////////////////////// | 650 //////////////////////////////////////////////////////////////////////////////// |
646 | 651 |
647 namespace { | 652 namespace { |
648 inline bool disable_coverage_aa_for_blend(GrDrawTarget* target) { | 653 inline bool disable_coverage_aa_for_blend(GrDrawTarget* target) { |
649 return DISABLE_COVERAGE_AA_FOR_BLEND && !target->canApplyCoverage(); | 654 return DISABLE_COVERAGE_AA_FOR_BLEND && !target->canApplyCoverage(); |
650 } | 655 } |
651 } | 656 } |
652 | 657 |
653 //////////////////////////////////////////////////////////////////////////////// | 658 //////////////////////////////////////////////////////////////////////////////// |
654 | 659 |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1743 return NULL; | 1748 return NULL; |
1744 } | 1749 } |
1745 } | 1750 } |
1746 | 1751 |
1747 /////////////////////////////////////////////////////////////////////////////// | 1752 /////////////////////////////////////////////////////////////////////////////// |
1748 #if GR_CACHE_STATS | 1753 #if GR_CACHE_STATS |
1749 void GrContext::printCacheStats() const { | 1754 void GrContext::printCacheStats() const { |
1750 fTextureCache->printStats(); | 1755 fTextureCache->printStats(); |
1751 } | 1756 } |
1752 #endif | 1757 #endif |
OLD | NEW |