Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: src/gpu/GrContext.cpp

Issue 25736002: Add support to dump font cache texture for debug purposes (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Cleaned up for nits. Hid dump commands behind SK_DEVELOPER Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« src/gpu/GrAtlas.cpp ('K') | « src/gpu/GrAtlas.cpp ('k') | src/gpu/GrTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698