Support pixelRatio parameter for render tests

This commit is contained in:
John Firebaugh
2014-09-22 14:05:15 -07:00
parent 896379daa5
commit 4b98870e99
3 changed files with 15 additions and 7 deletions

View File

@@ -65,9 +65,12 @@ HeadlessView::HeadlessView() {
}
void HeadlessView::resize(int width, int height) {
void HeadlessView::resize(uint16_t width, uint16_t height, float pixelRatio) {
clear_buffers();
width *= pixelRatio;
height *= pixelRatio;
#if MBGL_USE_CGL
make_active();