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

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: 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698