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

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

Issue 423943003: Remove gpu support for willUseHWAALines. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Nits Created 6 years, 4 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
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
756 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) 752 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT)
757 if (strokeWidth >= 0) { 753 if (strokeWidth >= 0) {
758 #endif 754 #endif
759 if (!combinedMatrix.preservesAxisAlignment()) { 755 if (!combinedMatrix.preservesAxisAlignment()) {
760 return false; 756 return false;
761 } 757 }
762 758
763 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) 759 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT)
764 } else { 760 } else {
765 if (!combinedMatrix.preservesRightAngles()) { 761 if (!combinedMatrix.preservesRightAngles()) {
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 fDrawBuffer->removeGpuTraceMarker(marker); 1918 fDrawBuffer->removeGpuTraceMarker(marker);
1923 } 1919 }
1924 } 1920 }
1925 1921
1926 /////////////////////////////////////////////////////////////////////////////// 1922 ///////////////////////////////////////////////////////////////////////////////
1927 #if GR_CACHE_STATS 1923 #if GR_CACHE_STATS
1928 void GrContext::printCacheStats() const { 1924 void GrContext::printCacheStats() const {
1929 fResourceCache->printStats(); 1925 fResourceCache->printStats();
1930 } 1926 }
1931 #endif 1927 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/GrDrawState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698