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

Unified Diff: src/gpu/GrTextureAccess.cpp

Issue 20362002: make the filter mode for GrTextureAccess an enum so we can plumb down (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fall back to mipmaps for HQ sampling (for now) Created 7 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/gpu/GrTexture.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTextureAccess.cpp
diff --git a/src/gpu/GrTextureAccess.cpp b/src/gpu/GrTextureAccess.cpp
index 499b1f237fb6f793eea48567a32d1f79cc2086e7..ae6c04222fe98e5ce1241d83a19104d676c32258 100644
--- a/src/gpu/GrTextureAccess.cpp
+++ b/src/gpu/GrTextureAccess.cpp
@@ -21,9 +21,9 @@ GrTextureAccess::GrTextureAccess(GrTexture* texture, const GrTextureParams& para
}
GrTextureAccess::GrTextureAccess(GrTexture* texture,
- bool bilerp,
+ GrTextureParams::FilterMode filterMode,
SkShader::TileMode tileXAndY) {
- this->reset(texture, bilerp, tileXAndY);
+ this->reset(texture, filterMode, tileXAndY);
}
GrTextureAccess::GrTextureAccess(GrTexture* texture,
@@ -34,9 +34,9 @@ GrTextureAccess::GrTextureAccess(GrTexture* texture,
GrTextureAccess::GrTextureAccess(GrTexture* texture,
const char* swizzle,
- bool bilerp,
+ GrTextureParams::FilterMode filterMode,
SkShader::TileMode tileXAndY) {
- this->reset(texture, swizzle, bilerp, tileXAndY);
+ this->reset(texture, swizzle, filterMode, tileXAndY);
}
void GrTextureAccess::reset(GrTexture* texture,
@@ -52,12 +52,12 @@ void GrTextureAccess::reset(GrTexture* texture,
void GrTextureAccess::reset(GrTexture* texture,
const char* swizzle,
- bool bilerp,
+ GrTextureParams::FilterMode filterMode,
SkShader::TileMode tileXAndY) {
GrAssert(NULL != texture);
GrAssert(strlen(swizzle) >= 1 && strlen(swizzle) <= 4);
- fParams.reset(tileXAndY, bilerp);
+ fParams.reset(tileXAndY, filterMode);
fTexture.reset(SkRef(texture));
this->setSwizzle(swizzle);
}
@@ -72,11 +72,11 @@ void GrTextureAccess::reset(GrTexture* texture,
}
void GrTextureAccess::reset(GrTexture* texture,
- bool bilerp,
+ GrTextureParams::FilterMode filterMode,
SkShader::TileMode tileXAndY) {
GrAssert(NULL != texture);
fTexture.reset(SkRef(texture));
- fParams.reset(tileXAndY, bilerp);
+ fParams.reset(tileXAndY, filterMode);
memcpy(fSwizzle, "rgba", 5);
fSwizzleMask = kRGBA_GrColorComponentFlags;
}
« no previous file with comments | « src/gpu/GrTexture.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698