Two small fixes from recent changes prepping for std::unique_ptr<GrFragmentProcessor>.
Change-Id: I5d58c7a1ef27095685215eef814df204e9beb63a Reviewed-on: https://skia-review.googlesource.com/28240 Reviewed-by: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
5af9ea399d
commit
94e0b1166e
@ -122,7 +122,7 @@ sk_sp<GrFragmentProcessor> OverdrawFragmentProcessor::Make(const SkPMColor* colo
|
||||
SkGetPackedA32(colors[i])));
|
||||
}
|
||||
|
||||
return sk_sp<OverdrawFragmentProcessor>(new OverdrawFragmentProcessor(grColors));
|
||||
return sk_sp<GrFragmentProcessor>(new OverdrawFragmentProcessor(grColors));
|
||||
}
|
||||
|
||||
// This could implement the constant input -> constant output optimization, but we don't really
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
static int Count() { return GetFactories()->count(); }
|
||||
|
||||
/** Use factory function at Index idx to create a processor. */
|
||||
static sk_sp<Processor> MakeIdx(int idx, GrProcessorTestData* data) {
|
||||
static ProcessorSmartPtr MakeIdx(int idx, GrProcessorTestData* data) {
|
||||
GrProcessorTestFactory<ProcessorSmartPtr>* factory = (*GetFactories())[idx];
|
||||
ProcessorSmartPtr processor = factory->fMakeProc(data);
|
||||
SkASSERT(processor);
|
||||
|
Loading…
Reference in New Issue
Block a user