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