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

Unified Diff: src/gpu/GrTextureAccess.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/gpu/GrTextContext.cpp ('k') | src/gpu/GrTextureParamsAdjuster.h » ('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 7e1eda6211f5783c0bf8ab7e0b59e781b8e74df0..f1fec1acd4fe5de4c65c86b55e22f53d3f9595fd 100644
--- a/src/gpu/GrTextureAccess.cpp
+++ b/src/gpu/GrTextureAccess.cpp
@@ -16,56 +16,62 @@ GrTextureAccess::GrTextureAccess() {
#endif
}
-GrTextureAccess::GrTextureAccess(GrTexture* texture, const GrTextureParams& params) {
- this->reset(texture, params);
+GrTextureAccess::GrTextureAccess(GrTexture* texture, const GrTextureParams& params, GrRenderTarget* dst) {
+ this->reset(texture, params, dst);
}
GrTextureAccess::GrTextureAccess(GrTexture* texture,
GrTextureParams::FilterMode filterMode,
- SkShader::TileMode tileXAndY) {
- this->reset(texture, filterMode, tileXAndY);
+ SkShader::TileMode tileXAndY,
+ GrRenderTarget* dst) {
+ this->reset(texture, filterMode, tileXAndY, dst);
}
GrTextureAccess::GrTextureAccess(GrTexture* texture,
const char* swizzle,
- const GrTextureParams& params) {
- this->reset(texture, swizzle, params);
+ const GrTextureParams& params,
+ GrRenderTarget* dst) {
+ this->reset(texture, swizzle, params, dst);
}
GrTextureAccess::GrTextureAccess(GrTexture* texture,
const char* swizzle,
GrTextureParams::FilterMode filterMode,
- SkShader::TileMode tileXAndY) {
- this->reset(texture, swizzle, filterMode, tileXAndY);
+ SkShader::TileMode tileXAndY,
+ GrRenderTarget* dst) {
+ this->reset(texture, swizzle, filterMode, tileXAndY, dst);
}
void GrTextureAccess::reset(GrTexture* texture,
const char* swizzle,
- const GrTextureParams& params) {
+ const GrTextureParams& params,
+ GrRenderTarget* dst) {
SkASSERT(texture);
SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4);
fParams = params;
- fTexture.set(SkRef(texture), kRead_GrIOType);
+ fTexture.set(SkRef(texture), kRead_GrIOType, dst);
this->setSwizzle(swizzle);
}
void GrTextureAccess::reset(GrTexture* texture,
const char* swizzle,
GrTextureParams::FilterMode filterMode,
- SkShader::TileMode tileXAndY) {
+ SkShader::TileMode tileXAndY,
+ GrRenderTarget* dst) {
SkASSERT(texture);
SkASSERT(strlen(swizzle) >= 1 && strlen(swizzle) <= 4);
fParams.reset(tileXAndY, filterMode);
- fTexture.set(SkRef(texture), kRead_GrIOType);
+ fTexture.set(SkRef(texture), kRead_GrIOType, dst);
this->setSwizzle(swizzle);
}
void GrTextureAccess::reset(GrTexture* texture,
- const GrTextureParams& params) {
+ const GrTextureParams& params,
+ GrRenderTarget* dst) {
SkASSERT(texture);
- fTexture.set(SkRef(texture), kRead_GrIOType);
+ fTexture.set(SkRef(texture), kRead_GrIOType, dst);
fParams = params;
memcpy(fSwizzle, "rgba", 5);
fSwizzleMask = kRGBA_GrColorComponentFlags;
@@ -73,9 +79,10 @@ void GrTextureAccess::reset(GrTexture* texture,
void GrTextureAccess::reset(GrTexture* texture,
GrTextureParams::FilterMode filterMode,
- SkShader::TileMode tileXAndY) {
+ SkShader::TileMode tileXAndY,
+ GrRenderTarget* dst) {
SkASSERT(texture);
- fTexture.set(SkRef(texture), kRead_GrIOType);
+ fTexture.set(SkRef(texture), kRead_GrIOType, dst);
fParams.reset(tileXAndY, filterMode);
memcpy(fSwizzle, "rgba", 5);
fSwizzleMask = kRGBA_GrColorComponentFlags;
« no previous file with comments | « src/gpu/GrTextContext.cpp ('k') | src/gpu/GrTextureParamsAdjuster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698