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

Side by Side Diff: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp

Issue 2105443002: Fix inverse test for GrDFAAPR::onCanDrawPath (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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 | no next file » | 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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrAADistanceFieldPathRenderer.h" 8 #include "GrAADistanceFieldPathRenderer.h"
9 9
10 #include "GrBatchFlushState.h" 10 #include "GrBatchFlushState.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // This only supports filled paths, however, the caller may apply the style to make a filled 90 // This only supports filled paths, however, the caller may apply the style to make a filled
91 // path and try again. 91 // path and try again.
92 if (!args.fShape->style().isSimpleFill()) { 92 if (!args.fShape->style().isSimpleFill()) {
93 return false; 93 return false;
94 } 94 }
95 // This does non-inverse antialiased fills. 95 // This does non-inverse antialiased fills.
96 if (!args.fAntiAlias) { 96 if (!args.fAntiAlias) {
97 return false; 97 return false;
98 } 98 }
99 // TODO: Support inverse fill 99 // TODO: Support inverse fill
100 if (!args.fShape->inverseFilled()) { 100 if (args.fShape->inverseFilled()) {
101 return false; 101 return false;
102 } 102 }
103 // currently don't support perspective 103 // currently don't support perspective
104 if (args.fViewMatrix->hasPerspective()) { 104 if (args.fViewMatrix->hasPerspective()) {
105 return false; 105 return false;
106 } 106 }
107 107
108 // only support paths with bounds within kMediumMIP by kMediumMIP, 108 // only support paths with bounds within kMediumMIP by kMediumMIP,
109 // scaled to have bounds within 2.0f*kLargeMIP by 2.0f*kLargeMIP 109 // scaled to have bounds within 2.0f*kLargeMIP by 2.0f*kLargeMIP
110 // the goal is to accelerate rendering of lots of small paths that may be sc aling 110 // the goal is to accelerate rendering of lots of small paths that may be sc aling
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 geometry.fAntiAlias = random->nextBool(); 628 geometry.fAntiAlias = random->nextBool();
629 629
630 return AADistanceFieldPathBatch::Create(geometry, viewMatrix, 630 return AADistanceFieldPathBatch::Create(geometry, viewMatrix,
631 gTestStruct.fAtlas, 631 gTestStruct.fAtlas,
632 &gTestStruct.fShapeCache, 632 &gTestStruct.fShapeCache,
633 &gTestStruct.fShapeList, 633 &gTestStruct.fShapeList,
634 gammaCorrect); 634 gammaCorrect);
635 } 635 }
636 636
637 #endif 637 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698