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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 GrAssert(combinedMatrix->preservesAxisAlignment()); | 757 GrAssert(combinedMatrix->preservesAxisAlignment()); |
758 #ifdef SHADER_AA_FILL_RECT | 758 #ifdef SHADER_AA_FILL_RECT |
759 } else { | 759 } else { |
760 GrAssert(combinedMatrix->preservesRightAngles()); | 760 GrAssert(combinedMatrix->preservesRightAngles()); |
761 } | 761 } |
762 #endif | 762 #endif |
763 #endif | 763 #endif |
764 } | 764 } |
765 | 765 |
766 combinedMatrix->mapRect(devRect, rect); | 766 combinedMatrix->mapRect(devRect, rect); |
767 devRect->sort(); | |
768 | 767 |
769 if (strokeWidth < 0) { | 768 if (strokeWidth < 0) { |
770 return !isIRect(*devRect); | 769 return !isIRect(*devRect); |
771 } else { | 770 } else { |
772 return true; | 771 return true; |
773 } | 772 } |
774 } | 773 } |
775 | 774 |
776 void GrContext::drawRect(const GrPaint& paint, | 775 void GrContext::drawRect(const GrPaint& paint, |
777 const GrRect& rect, | 776 const GrRect& rect, |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 return srcTexture; | 1804 return srcTexture; |
1806 } | 1805 } |
1807 } | 1806 } |
1808 | 1807 |
1809 /////////////////////////////////////////////////////////////////////////////// | 1808 /////////////////////////////////////////////////////////////////////////////// |
1810 #if GR_CACHE_STATS | 1809 #if GR_CACHE_STATS |
1811 void GrContext::printCacheStats() const { | 1810 void GrContext::printCacheStats() const { |
1812 fTextureCache->printStats(); | 1811 fTextureCache->printStats(); |
1813 } | 1812 } |
1814 #endif | 1813 #endif |
OLD | NEW |