Lines Matching refs:surface
124 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
127 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
129 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
131 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
132 (surface->width - 1 - x); in PixelAt()
134 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
303 unsigned int gr_get_width(const GRSurface* surface) { in gr_get_width() argument
304 if (surface == nullptr) { in gr_get_width()
307 return surface->width; in gr_get_width()
310 unsigned int gr_get_height(const GRSurface* surface) { in gr_get_height() argument
311 if (surface == nullptr) { in gr_get_height()
314 return surface->height; in gr_get_height()