Searched refs:mousePos (Results 1 - 2 of 2) sorted by relevance

/external/skqp/tools/viewer/
H A DViewer.cpp1150 ImVec2 mousePos = ImGui::GetMousePos(); local
1155 if (fLastImage->readPixels(info, &pixel, info.minRowBytes(), mousePos.x, mousePos.y)) {
1158 sk_float_round2int(mousePos.x), sk_float_round2int(mousePos.y),
1167 c->translate(avail.x * 0.5f / zoomFactor - mousePos.x - 0.5f,
1168 avail.y * 0.5f / zoomFactor - mousePos.y - 0.5f);
1173 c->drawRect(SkRect::MakeXYWH(mousePos.x, mousePos.y, 1, 1), outline);
/external/skia/tools/viewer/
H A DViewer.cpp1340 ImVec2 mousePos = ImGui::GetMousePos(); local
1345 if (fLastImage->readPixels(info, &pixel, info.minRowBytes(), mousePos.x, mousePos.y)) {
1348 sk_float_round2int(mousePos.x), sk_float_round2int(mousePos.y),
1357 c->translate(avail.x * 0.5f / zoomFactor - mousePos.x - 0.5f,
1358 avail.y * 0.5f / zoomFactor - mousePos.y - 0.5f);
1363 c->drawRect(SkRect::MakeXYWH(mousePos.x, mousePos.y, 1, 1), outline);

Completed in 6383 milliseconds