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

Unified Diff: src/effects/SkColorCubeFilter.cpp

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 8 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/SkBlurMaskFilter.cpp ('k') | src/effects/SkColorFilters.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkColorCubeFilter.cpp
diff --git a/src/effects/SkColorCubeFilter.cpp b/src/effects/SkColorCubeFilter.cpp
index 3abda5fe48b49527a3d8312350c745b25e127b14..b39f9b3463efbd9b207b1df7be32c712542bfc83 100644
--- a/src/effects/SkColorCubeFilter.cpp
+++ b/src/effects/SkColorCubeFilter.cpp
@@ -162,8 +162,8 @@ void SkColorCubeFilter::toString(SkString* str) const {
class GrColorCubeEffect : public GrFragmentProcessor {
public:
- static const GrFragmentProcessor* Create(GrTexture* colorCube) {
- return (nullptr != colorCube) ? new GrColorCubeEffect(colorCube) : nullptr;
+ static const GrFragmentProcessor* Create(GrTexture* colorCube, GrRenderTarget* dst) {
+ return (nullptr != colorCube) ? new GrColorCubeEffect(colorCube, dst) : nullptr;
}
virtual ~GrColorCubeEffect();
@@ -202,7 +202,7 @@ private:
bool onIsEqual(const GrFragmentProcessor&) const override { return true; }
- GrColorCubeEffect(GrTexture* colorCube);
+ GrColorCubeEffect(GrTexture* colorCube, GrRenderTarget* dst);
GrTextureAccess fColorCubeAccess;
@@ -211,8 +211,8 @@ private:
///////////////////////////////////////////////////////////////////////////////
-GrColorCubeEffect::GrColorCubeEffect(GrTexture* colorCube)
- : fColorCubeAccess(colorCube, "bgra", GrTextureParams::kBilerp_FilterMode) {
+GrColorCubeEffect::GrColorCubeEffect(GrTexture* colorCube, GrRenderTarget* dst)
+ : fColorCubeAccess(colorCube, "bgra", GrTextureParams::kBilerp_FilterMode, SkShader::kClamp_TileMode, dst) {
this->initClassID<GrColorCubeEffect>();
this->addTextureAccess(&fColorCubeAccess);
}
@@ -305,7 +305,8 @@ void GrColorCubeEffect::GLProcessor::GenKey(const GrProcessor& proc,
const GrGLSLCaps&, GrProcessorKeyBuilder* b) {
}
-const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context) const {
+const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* context,
+ GrRenderTarget* dst) const {
static const GrUniqueKey::Domain kDomain = GrUniqueKey::GenerateDomain();
GrUniqueKey key;
GrUniqueKey::Builder builder(&key, kDomain, 2);
@@ -330,6 +331,6 @@ const GrFragmentProcessor* SkColorCubeFilter::asFragmentProcessor(GrContext* con
}
}
- return GrColorCubeEffect::Create(textureCube);
+ return GrColorCubeEffect::Create(textureCube, dst);
}
#endif
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/effects/SkColorFilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698