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

Unified Diff: src/gpu/GrDrawContext.cpp

Issue 1271243004: Remove SHADER_AA_FILL_RECT flag (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawContext.cpp
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 288841c1120abbcb8e61db4d49b447a369d547c3..dff0818d3a3f7aa25b2438bf45e645e1f6ae6142 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -213,25 +213,11 @@ static bool apply_aa_to_rect(GrDrawTarget* target,
SkScalar strokeWidth,
const SkMatrix& combinedMatrix,
GrColor color) {
- if (pipelineBuilder->getRenderTarget()->isUnifiedMultisampled()) {
+ if (pipelineBuilder->getRenderTarget()->isUnifiedMultisampled() ||
+ !combinedMatrix.preservesAxisAlignment()) {
return false;
}
-#ifdef SHADER_AA_FILL_RECT
- if (strokeWidth >= 0) {
-#endif
- if (!combinedMatrix.preservesAxisAlignment()) {
- return false;
- }
-
-#ifdef SHADER_AA_FILL_RECT
- } else {
- if (!combinedMatrix.preservesRightAngles()) {
- return false;
- }
- }
-#endif
-
combinedMatrix.mapRect(devBoundRect, rect);
if (!combinedMatrix.rectStaysRect()) {
return true;
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698