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

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: 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 | « no previous file | src/gpu/GrDrawState.h » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')
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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 return false; 747 return false;
748 } else { 748 } else {
749 *useVertexCoverage = true; 749 *useVertexCoverage = true;
750 } 750 }
751 } 751 }
752 const GrDrawState& drawState = target->getDrawState(); 752 const GrDrawState& drawState = target->getDrawState();
753 if (drawState.getRenderTarget()->isMultisampled()) { 753 if (drawState.getRenderTarget()->isMultisampled()) {
754 return false; 754 return false;
755 } 755 }
756 756
757 if (0 == strokeWidth && target->willUseHWAALines()) {
758 return false;
759 }
760
761 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) 757 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT)
762 if (strokeWidth >= 0) { 758 if (strokeWidth >= 0) {
763 #endif 759 #endif
764 if (!combinedMatrix.preservesAxisAlignment()) { 760 if (!combinedMatrix.preservesAxisAlignment()) {
765 return false; 761 return false;
766 } 762 }
767 763
768 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT) 764 #if defined(SHADER_AA_FILL_RECT) || !defined(IGNORE_ROT_AA_RECT_OPT)
769 } else { 765 } else {
770 if (!combinedMatrix.preservesRightAngles()) { 766 if (!combinedMatrix.preservesRightAngles()) {
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 fDrawBuffer->removeGpuTraceMarker(marker); 1923 fDrawBuffer->removeGpuTraceMarker(marker);
1928 } 1924 }
1929 } 1925 }
1930 1926
1931 /////////////////////////////////////////////////////////////////////////////// 1927 ///////////////////////////////////////////////////////////////////////////////
1932 #if GR_CACHE_STATS 1928 #if GR_CACHE_STATS
1933 void GrContext::printCacheStats() const { 1929 void GrContext::printCacheStats() const {
1934 fResourceCache->printStats(); 1930 fResourceCache->printStats();
1935 } 1931 }
1936 #endif 1932 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawState.h » ('j') | src/gpu/gl/GrGpuGL.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698