Lines Matching refs:surface
123 static uint32_t* PixelAt(GRSurface* surface, int x, int y, int row_pixels) { in PixelAt() argument
126 return reinterpret_cast<uint32_t*>(surface->data()) + y * row_pixels + x; in PixelAt()
128 return reinterpret_cast<uint32_t*>(surface->data()) + x * row_pixels + (surface->width - y); in PixelAt()
130 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - y) * row_pixels + in PixelAt()
131 (surface->width - 1 - x); in PixelAt()
133 return reinterpret_cast<uint32_t*>(surface->data()) + (surface->height - 1 - x) * row_pixels + in PixelAt()
302 unsigned int gr_get_width(const GRSurface* surface) { in gr_get_width() argument
303 if (surface == nullptr) { in gr_get_width()
306 return surface->width; in gr_get_width()
309 unsigned int gr_get_height(const GRSurface* surface) { in gr_get_height() argument
310 if (surface == nullptr) { in gr_get_height()
313 return surface->height; in gr_get_height()