diff options
author | 2014-12-12 08:51:38 -0800 | |
---|---|---|
committer | 2014-12-12 08:51:39 -0800 | |
commit | ef3fcd877aa78c1d0ac802043cd8785180304c12 (patch) | |
tree | 7129a84e40a97532af73b6fddc5cab5c663280ef /src/gpu | |
parent | 81a6c3cc75aae33a7334e6071b066537930b8558 (diff) |
More win64 warning fixes
Review URL: https://codereview.chromium.org/798723002
Diffstat (limited to 'src/gpu')
-rwxr-xr-x | src/gpu/GrDistanceFieldTextContext.cpp | 4 | ||||
-rw-r--r-- | src/gpu/GrInOrderDrawBuffer.cpp | 4 | ||||
-rw-r--r-- | src/gpu/GrProgramDesc.h | 2 | ||||
-rw-r--r-- | src/gpu/GrSWMaskHelper.cpp | 2 | ||||
-rw-r--r-- | src/gpu/GrSWMaskHelper.h | 2 | ||||
-rw-r--r-- | src/gpu/gl/GrGLPathRendering.cpp | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/gpu/GrDistanceFieldTextContext.cpp b/src/gpu/GrDistanceFieldTextContext.cpp index d25757c695..a052b641f6 100755 --- a/src/gpu/GrDistanceFieldTextContext.cpp +++ b/src/gpu/GrDistanceFieldTextContext.cpp @@ -306,7 +306,7 @@ void GrDistanceFieldTextContext::onDrawPosText(const GrPaint& paint, const SkPai glyph.getSubYFixed()), x, y, fontScaler)) { // couldn't append, send to fallback - fallbackTxt.push_back_n(SkToU32(text-lastText), lastText); + fallbackTxt.push_back_n(SkToInt(text-lastText), lastText); fallbackPos.push_back(pos[0]); if (2 == scalarsPerPosition) { fallbackPos.push_back(pos[1]); @@ -335,7 +335,7 @@ void GrDistanceFieldTextContext::onDrawPosText(const GrPaint& paint, const SkPai glyph.getSubYFixed()), x - advanceX, y - advanceY, fontScaler)) { // couldn't append, send to fallback - fallbackTxt.push_back_n(SkToU32(text-lastText), lastText); + fallbackTxt.push_back_n(SkToInt(text-lastText), lastText); fallbackPos.push_back(pos[0]); if (2 == scalarsPerPosition) { fallbackPos.push_back(pos[1]); diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp index 68d2e3bc9a..62d6818c2b 100644 --- a/src/gpu/GrInOrderDrawBuffer.cpp +++ b/src/gpu/GrInOrderDrawBuffer.cpp @@ -332,9 +332,9 @@ void GrInOrderDrawBuffer::onDrawPaths(const GrDrawState& ds, } DrawPaths* dp = GrNEW_APPEND_TO_RECORDER(fCmdBuffer, DrawPaths, (pathRange)); - dp->fIndicesLocation = savedIndices - fPathIndexBuffer.begin(); + dp->fIndicesLocation = SkToU32(savedIndices - fPathIndexBuffer.begin()); dp->fIndexType = indexType; - dp->fTransformsLocation = savedTransforms - fPathTransformBuffer.begin(); + dp->fTransformsLocation = SkToU32(savedTransforms - fPathTransformBuffer.begin()); dp->fTransformType = transformType; dp->fCount = count; dp->fStencilSettings = stencilSettings; diff --git a/src/gpu/GrProgramDesc.h b/src/gpu/GrProgramDesc.h index 5b339613c5..022bbc3d44 100644 --- a/src/gpu/GrProgramDesc.h +++ b/src/gpu/GrProgramDesc.h @@ -36,7 +36,7 @@ public: GrProgramDesc& operator= (const GrProgramDesc& other) { uint32_t keyLength = other.keyLength(); - fKey.reset(keyLength); + fKey.reset(SkToInt(keyLength)); memcpy(fKey.begin(), other.fKey.begin(), keyLength); return *this; } diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp index 142cd92718..b6a7059192 100644 --- a/src/gpu/GrSWMaskHelper.cpp +++ b/src/gpu/GrSWMaskHelper.cpp @@ -252,7 +252,7 @@ GrTexture* GrSWMaskHelper::createTexture() { } void GrSWMaskHelper::sendTextureData(GrTexture *texture, const GrSurfaceDesc& desc, - const void *data, int rowbytes) { + const void *data, size_t rowbytes) { // If we aren't reusing scratch textures we don't need to flush before // writing since no one else will be using 'texture' bool reuseScratch = fContext->getGpu()->caps()->reuseScratchTextures(); diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h index 1eef46ecff..229b0e5e90 100644 --- a/src/gpu/GrSWMaskHelper.h +++ b/src/gpu/GrSWMaskHelper.h @@ -128,7 +128,7 @@ private: // Actually sends the texture data to the GPU. This is called from // toTexture with the data filled in depending on the texture config. void sendTextureData(GrTexture *texture, const GrSurfaceDesc& desc, - const void *data, int rowbytes); + const void *data, size_t rowbytes); // Compresses the bitmap stored in fBM and sends the compressed data // to the GPU to be stored in 'texture' using sendTextureData. diff --git a/src/gpu/gl/GrGLPathRendering.cpp b/src/gpu/gl/GrGLPathRendering.cpp index 5e0889562d..44b86818e9 100644 --- a/src/gpu/gl/GrGLPathRendering.cpp +++ b/src/gpu/gl/GrGLPathRendering.cpp @@ -136,7 +136,7 @@ GrPathRange* GrGLPathRendering::createGlyphs(const SkTypeface* typeface, const void* fontData = fontStream->getMemoryBase(); if (NULL == fontData) { // TODO: Find a more efficient way to pass the font data (e.g. open file descriptor). - fontTempBuffer.reset(SkToU32(fontDataLength)); + fontTempBuffer.reset(SkToInt(fontDataLength)); fontStream->read(&fontTempBuffer.front(), fontDataLength); fontData = &fontTempBuffer.front(); } |