Lines Matching defs:pixels
53 // Global resource ceiling (expressed in terms of pixels) for DrawingBuffer creation and resize.
230 unsigned char* pixels = bitmap->pixels();
233 if (pixels)
234 readBackFramebuffer(pixels, size().width(), size().height(), ReadbackSkia, op);
931 RefPtr<Uint8ClampedArray> pixels = Uint8ClampedArray::createUninitialized(width * height * 4);
934 readBackFramebuffer(pixels->data(), width, height, ReadbackRGBA, WebGLImageConversion::AlphaDoNothing);
935 flipVertically(pixels->data(), width, height);
937 return pixels.release();
942 unsigned char* pixels = 0;
965 pixels = static_cast<unsigned char*>(readbackBitmap->getPixels());
968 readBackFramebuffer(pixels, width, height, ReadbackSkia, premultiplyAlpha ? WebGLImageConversion::AlphaDoPremultiply : WebGLImageConversion::AlphaDoNothing);
969 flipVertically(pixels, width, height);
981 void DrawingBuffer::readBackFramebuffer(unsigned char* pixels, int width, int height, ReadbackOrder readbackOrder, WebGLImageConversion::AlphaOp op)
985 m_context->readPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
996 std::swap(pixels[i], pixels[i + 2]);
1003 pixels[i + 0] = std::min(255, pixels[i + 0] * pixels[i + 3] / 255);
1004 pixels[i + 1] = std::min(255, pixels[i + 1] * pixels[i + 3] / 255);
1005 pixels[i + 2] = std::min(255, pixels[i + 2] * pixels[i + 3] / 255);