Fix IWYU error in metal-code generator, re-gen dither effect

Change-Id: I3b8c59000a1c3cdc37f0c1d40dcc5304b8a5fc98
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/308557
Reviewed-by: Brian Osman <brianosman@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
This commit is contained in:
Brian Osman 2020-08-06 16:34:34 -04:00 committed by Skia Commit-Bot
parent 2c4a07d925
commit c262a12453
2 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,7 @@ std::unique_ptr<GrFragmentProcessor> GrDitherEffect::clone() const {
GR_DEFINE_FRAGMENT_PROCESSOR_TEST(GrDitherEffect);
#if GR_TEST_UTILS
std::unique_ptr<GrFragmentProcessor> GrDitherEffect::TestCreate(GrProcessorTestData* d) {
float range = d->fRandom->nextRangeF(0.0, 1.0);
float range = 1.0f - d->fRandom->nextRangeF(0.0f, 1.0f);
return GrDitherEffect::Make(GrProcessorUnitTest::MakeChildFP(d), range);
}
#endif

View File

@ -15,6 +15,8 @@
#include "src/sksl/ir/SkSLNop.h"
#include "src/sksl/ir/SkSLVariableReference.h"
#include <algorithm>
namespace SkSL {
class MetalCodeGenerator::GlobalStructVisitor {