diff options
author | 2015-11-23 15:29:36 -0800 | |
---|---|---|
committer | 2015-11-23 15:29:36 -0800 | |
commit | 0a0605d4de319fa9f24f2fb239ae7ea039d9fd02 (patch) | |
tree | c208182f96731e5436e71788c0163f728973151f /src/gpu/GrTextureParamsAdjuster.cpp | |
parent | 813351f5051028afa5a9d0639dbea58447c45c25 (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.cpp | 5 |
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(); |