Lines Matching defs:width
60 GrColorType colorType, int width,
73 width, height, plotWidth, plotHeight,
91 int offX, int offY, int width, int height, GrColorType colorType)
101 , fWidth(width)
105 , fRectanizer(width, height)
114 SkASSERT(((width*fBytesPerPixel) & 0x3) == 0);
125 int width, int height, const void* image, AtlasLocator* atlasLocator) {
126 SkASSERT(width <= fWidth && height <= fHeight);
129 if (!fRectanizer.addRect(width, height, &loc)) {
133 GrIRect16 rect = GrIRect16::MakeXYWH(loc.fX, loc.fY, width, height);
139 size_t rowBytes = width * fBytesPerPixel;
148 SkOpts::RGBA_to_BGRA((uint32_t*)dataPtr, (const uint32_t*)imagePtr, width);
215 GrColorType colorType, int width, int height,
224 , fTextureWidth(width)
238 int numPlotsX = width/plotWidth;
285 bool GrDrawOpAtlas::uploadToPage(unsigned int pageIdx, GrDeferredUploadTarget* target, int width,
297 if (plot->addSubImage(width, height, image, atlasLocator)) {
316 int width, int height, const void* image,
318 if (width > fPlotWidth || height > fPlotHeight) {
326 if (this->uploadToPage(pageIdx, target, width, height, image, atlasLocator)) {
344 SkDEBUGCODE(bool verify = )plot->addSubImage(width, height, image, atlasLocator);
358 if (this->uploadToPage(fNumActivePages-1, target, width, height, image, atlasLocator)) {
400 SkDEBUGCODE(bool verify = )newPlot->addSubImage(width, height, image, atlasLocator);
720 SkASSERT(kARGBDimensions[index].width() <= kMaxAtlasDim);
722 fARGBDimensions.set(std::min<int>(kARGBDimensions[index].width(), maxTextureSize),
729 size_t maxBytes = fARGBDimensions.width() * fARGBDimensions.height() * 4;
731 return maxBytes / (fARGBDimensions.width() * fARGBDimensions.height());
738 return { std::min<int>(2 * fARGBDimensions.width(), fMaxTextureSize),
754 int plotWidth = atlasDimensions.width() >= 1024 ? 512 : 256;
759 int plotWidth = atlasDimensions.width() >= 2048 ? 512 : 256;