Lines Matching refs:width
46 Texture::Texture(GraphicsContext3D* context, PassOwnPtr<Vector<unsigned int>> tileTextureIds, Format format, int width, int height, int maxTextureSize)
49 , m_tiles(IntSize(maxTextureSize, maxTextureSize), IntSize(width, height), true)
84 PassRefPtr<Texture> Texture::create(GraphicsContext3D* context, Format format, int width, int height)
88 TilingData tiling(IntSize(maxTextureSize, maxTextureSize), IntSize(width, height), true);
119 tileBoundsWithBorder.width(),
123 return adoptRef(new Texture(context, textureIds.release(), format, width, height, maxTextureSize));
127 static uint32_t* copySubRect(uint32_t* src, int srcX, int srcY, uint32_t* dst, int width, int height, int srcStride)
131 if (!swizzle && width == srcStride)
137 for (int x = 0; x < width ; ++x) {
145 memcpy(dst + y * width, srcOffset + y * srcStride, 4 * width);
153 updateSubRect(pixels, IntRect(0, 0, m_tiles.totalSize().width(), m_tiles.totalSize().height()));
159 updateRectSanitized.intersect(IntRect(0, 0, m_tiles.totalSize().width(), m_tiles.totalSize().height()));
171 std::min(m_tiles.maxTextureSize().width(), m_tiles.borderTexels() + updateRectSanitized.width()) *
196 tempBuff.get(), updateRectIntersected.width(), updateRectIntersected.height(), m_tiles.totalSize().width());
200 tempBuff.get(), updateRectIntersected.width(), updateRectIntersected.height(), m_tiles.totalSize().width());
207 updateRectIntersected.width(),