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

Side by Side Diff: src/gpu/gl/GrGLPathRendering.cpp

Issue 798723002: More win64 warning fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@size_t
Patch Set: off_t is signed Created 6 years 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 unified diff | Download patch
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | src/pdf/SkPDFCatalog.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gl/GrGLPathRendering.h" 8 #include "gl/GrGLPathRendering.h"
9 #include "gl/GrGLNameAllocator.h" 9 #include "gl/GrGLNameAllocator.h"
10 #include "gl/GrGLUtil.h" 10 #include "gl/GrGLUtil.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 const size_t fontDataLength = fontStream->getLength(); 130 const size_t fontDataLength = fontStream->getLength();
131 if (0 == fontDataLength) { 131 if (0 == fontDataLength) {
132 return GrPathRendering::createGlyphs(typeface, NULL, stroke); 132 return GrPathRendering::createGlyphs(typeface, NULL, stroke);
133 } 133 }
134 134
135 SkTArray<uint8_t> fontTempBuffer; 135 SkTArray<uint8_t> fontTempBuffer;
136 const void* fontData = fontStream->getMemoryBase(); 136 const void* fontData = fontStream->getMemoryBase();
137 if (NULL == fontData) { 137 if (NULL == fontData) {
138 // TODO: Find a more efficient way to pass the font data (e.g. open file descriptor). 138 // TODO: Find a more efficient way to pass the font data (e.g. open file descriptor).
139 fontTempBuffer.reset(SkToU32(fontDataLength)); 139 fontTempBuffer.reset(SkToInt(fontDataLength));
140 fontStream->read(&fontTempBuffer.front(), fontDataLength); 140 fontStream->read(&fontTempBuffer.front(), fontDataLength);
141 fontData = &fontTempBuffer.front(); 141 fontData = &fontTempBuffer.front();
142 } 142 }
143 143
144 const int numPaths = typeface->countGlyphs(); 144 const int numPaths = typeface->countGlyphs();
145 const GrGLuint basePathID = this->genPaths(numPaths); 145 const GrGLuint basePathID = this->genPaths(numPaths);
146 SkAutoTUnref<GrGLPath> templatePath(SkNEW_ARGS(GrGLPath, (fGpu, SkPath(), st roke))); 146 SkAutoTUnref<GrGLPath> templatePath(SkNEW_ARGS(GrGLPath, (fGpu, SkPath(), st roke)));
147 147
148 GrGLenum status; 148 GrGLenum status;
149 GL_CALL_RET(status, PathMemoryGlyphIndexArray(basePathID, GR_GL_STANDARD_FON T_FORMAT, 149 GL_CALL_RET(status, PathMemoryGlyphIndexArray(basePathID, GR_GL_STANDARD_FON T_FORMAT,
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 reference, mask, coverMode, transformType, 469 reference, mask, coverMode, transformType,
470 transformValues)); 470 transformValues));
471 return; 471 return;
472 } 472 }
473 473
474 GL_CALL(StencilStrokePathInstanced(numPaths, pathNameType, paths, pathBase, 474 GL_CALL(StencilStrokePathInstanced(numPaths, pathNameType, paths, pathBase,
475 reference, mask, transformType, transform Values)); 475 reference, mask, transformType, transform Values));
476 GL_CALL(CoverStrokePathInstanced(numPaths, pathNameType, paths, pathBase, 476 GL_CALL(CoverStrokePathInstanced(numPaths, pathNameType, paths, pathBase,
477 coverMode, transformType, transformValues)) ; 477 coverMode, transformType, transformValues)) ;
478 } 478 }
OLDNEW
« no previous file with comments | « src/gpu/GrSWMaskHelper.cpp ('k') | src/pdf/SkPDFCatalog.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698