aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrTextureParamsAdjuster.cpp
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2015-11-23 15:29:36 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-23 15:29:36 -0800
commit0a0605d4de319fa9f24f2fb239ae7ea039d9fd02 (patch)
treec208182f96731e5436e71788c0163f728973151f /src/gpu/GrTextureParamsAdjuster.cpp
parent813351f5051028afa5a9d0639dbea58447c45c25 (diff)
Appeasing the compilers
NOTRY=True NOTREECHECKS=True TBR=robertphillips@google.com BUG=skia: Review URL: https://codereview.chromium.org/1471143002
Diffstat (limited to 'src/gpu/GrTextureParamsAdjuster.cpp')
-rw-r--r--src/gpu/GrTextureParamsAdjuster.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 09285579c1..2aedad57ef 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -72,8 +72,9 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset,
GrPaint paint;
- SkScalar sx;
- SkScalar sy;
+ // TODO: Initializing these values for no reason cause the compiler is complaining
+ SkScalar sx = 0.f;
+ SkScalar sy = 0.f;
if (subset) {
sx = 1.f / inputTexture->width();
sy = 1.f / inputTexture->height();