Lines Matching refs:startOffset

16     int startOffset = 0;  in readbackPixels()  local
23 &startOffset, in readbackPixels()
32 if (startOffset == 0 && in readbackPixels()
38 std::vector<char> paddingToDiscard(startOffset, 0); in readbackPixels()
39 readback(&paddingToDiscard[0], startOffset); in readbackPixels()
40 readback((char*)pixels + startOffset, pixelDataSize - startOffset); in readbackPixels()
44 if (startOffset > 0) { in readbackPixels()
45 std::vector<char> paddingToDiscard(startOffset, 0); in readbackPixels()
46 readback(&paddingToDiscard[0], startOffset); in readbackPixels()
47 totalReadback += startOffset; in readbackPixels()
53 char* start = (char*)pixels + startOffset; in readbackPixels()
82 int startOffset = 0; in uploadPixels() local
89 &startOffset, in uploadPixels()
98 if (startOffset == 0 && in uploadPixels()
104 std::vector<char> paddingToDiscard(startOffset, 0); in uploadPixels()
105 writeFully(&paddingToDiscard[0], startOffset); in uploadPixels()
106 writeFully((char*)pixels + startOffset, pixelDataSize - startOffset); in uploadPixels()
110 if (startOffset > 0) { in uploadPixels()
111 std::vector<char> paddingToDiscard(startOffset, 0); in uploadPixels()
112 writeFully(&paddingToDiscard[0], startOffset); in uploadPixels()
113 totalReadback += startOffset; in uploadPixels()
119 char* start = (char*)pixels + startOffset; in uploadPixels()
142 int startOffset = 0; in uploadPixels() local
152 &startOffset, in uploadPixels()
166 if (startOffset == 0 && in uploadPixels()
176 std::vector<char> paddingToDiscard(startOffset, 0); in uploadPixels()
177 writeFully(&paddingToDiscard[0], startOffset); in uploadPixels()
178 writeFully((char*)pixels + startOffset, pixelDataSize - startOffset); in uploadPixels()
183 if (startOffset > 0) { in uploadPixels()
184 std::vector<char> paddingToDiscard(startOffset, 0); in uploadPixels()
185 writeFully(&paddingToDiscard[0], startOffset); in uploadPixels()
186 totalReadback += startOffset; in uploadPixels()
192 char* start = (char*)pixels + startOffset; in uploadPixels()