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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 return false; | 744 return false; |
745 } else { | 745 } else { |
746 *useVertexCoverage = true; | 746 *useVertexCoverage = true; |
747 } | 747 } |
748 } | 748 } |
749 const GrDrawState& drawState = target->getDrawState(); | 749 const GrDrawState& drawState = target->getDrawState(); |
750 if (drawState.getRenderTarget()->isMultisampled()) { | 750 if (drawState.getRenderTarget()->isMultisampled()) { |
751 return false; | 751 return false; |
752 } | 752 } |
753 | 753 |
754 if (0 == strokeWidth && target->willUseHWAALines()) { | |
755 return false; | |
756 } | |
757 | |
758 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) | 754 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) |
759 if (strokeWidth >= 0) { | 755 if (strokeWidth >= 0) { |
760 #endif | 756 #endif |
761 if (!combinedMatrix.preservesAxisAlignment()) { | 757 if (!combinedMatrix.preservesAxisAlignment()) { |
762 return false; | 758 return false; |
763 } | 759 } |
764 | 760 |
765 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) | 761 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) |
766 } else { | 762 } else { |
767 if (!combinedMatrix.preservesRightAngles()) { | 763 if (!combinedMatrix.preservesRightAngles()) { |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 fDrawBuffer->removeGpuTraceMarker(marker); | 1920 fDrawBuffer->removeGpuTraceMarker(marker); |
1925 } | 1921 } |
1926 } | 1922 } |
1927 | 1923 |
1928 /////////////////////////////////////////////////////////////////////////////// | 1924 /////////////////////////////////////////////////////////////////////////////// |
1929 #if GR_CACHE_STATS | 1925 #if GR_CACHE_STATS |
1930 void GrContext::printCacheStats() const { | 1926 void GrContext::printCacheStats() const { |
1931 fResourceCache->printStats(); | 1927 fResourceCache->printStats(); |
1932 } | 1928 } |
1933 #endif | 1929 #endif |
OLD | NEW |