Searched refs:rectangleTexture (Results 1 – 1 of 1) sorted by relevance
/external/skia/tests/ |
D | RectangleTextureTest.cpp | 17 GrTexture* rectangleTexture, uint32_t expectedPixelValues[]) { in test_read_pixels() argument 18 int pixelCnt = rectangleTexture->width() * rectangleTexture->height(); in test_read_pixels() 21 bool read = rectangleTexture->readPixels(0, 0, rectangleTexture->width(), in test_read_pixels() 22 rectangleTexture->height(), kRGBA_8888_GrPixelConfig, in test_read_pixels() 37 GrTexture* rectangleTexture) { in test_write_pixels() argument 38 int pixelCnt = rectangleTexture->width() * rectangleTexture->height(); in test_write_pixels() 40 for (int y = 0; y < rectangleTexture->width(); ++y) { in test_write_pixels() 41 for (int x = 0; x < rectangleTexture->height(); ++x) { in test_write_pixels() 42 pixels.get()[y * rectangleTexture->width() + x] = GrColorPackRGBA(x, y, x + y, x * y); in test_write_pixels() 45 bool write = rectangleTexture->writePixels(0, 0, rectangleTexture->width(), in test_write_pixels() [all …]
|