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

Unified Diff: src/effects/SkTableColorFilter.cpp

Issue 1213613016: More threading of GrShaderDataManager (Closed) Base URL: https://skia.googlesource.com/skia.git@GrShaderDataManager
Patch Set: build issue Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/effects/SkLumaColorFilter.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkTableColorFilter.cpp
diff --git a/src/effects/SkTableColorFilter.cpp b/src/effects/SkTableColorFilter.cpp
index 839b014c68c5bdf60fb5c3d5afe4068092cbc242..e4bc778a8e974477576e0528dc936494ef42dc23 100644
--- a/src/effects/SkTableColorFilter.cpp
+++ b/src/effects/SkTableColorFilter.cpp
@@ -50,7 +50,8 @@ public:
SkColorFilter* newComposed(const SkColorFilter* inner) const override;
#if SK_SUPPORT_GPU
- bool asFragmentProcessors(GrContext*, SkTDArray<GrFragmentProcessor*>*) const override;
+ bool asFragmentProcessors(GrContext*, GrShaderDataManager*,
+ SkTDArray<GrFragmentProcessor*>*) const override;
#endif
void filterSpan(const SkPMColor src[], int count, SkPMColor dst[]) const override;
@@ -576,7 +577,8 @@ GrFragmentProcessor* ColorTableEffect::TestCreate(SkRandom* random,
));
SkTDArray<GrFragmentProcessor*> array;
- if (filter->asFragmentProcessors(context, &array)) {
+ GrPaint grPaint;
+ if (filter->asFragmentProcessors(context, grPaint.getShaderDataManager(), &array)) {
SkASSERT(1 == array.count()); // TableColorFilter only returns 1
return array[0];
}
@@ -584,6 +586,7 @@ GrFragmentProcessor* ColorTableEffect::TestCreate(SkRandom* random,
}
bool SkTable_ColorFilter::asFragmentProcessors(GrContext* context,
+ GrShaderDataManager*,
SkTDArray<GrFragmentProcessor*>* array) const {
SkBitmap bitmap;
this->asComponentTable(&bitmap);
« no previous file with comments | « src/effects/SkLumaColorFilter.cpp ('k') | src/gpu/SkGr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698