Home
last modified time | relevance | path

Searched refs:pixel_ratio (Results 1 – 10 of 10) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/video/emscripten/
DSDL_emscriptenvideo.c200 wdata->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_CreateWindow()
202 wdata->pixel_ratio = 1.0f; in Emscripten_CreateWindow()
205 scaled_w = SDL_floor(window->w * wdata->pixel_ratio); in Emscripten_CreateWindow()
206 scaled_h = SDL_floor(window->h * wdata->pixel_ratio); in Emscripten_CreateWindow()
216 scaled_w = css_w * wdata->pixel_ratio; in Emscripten_CreateWindow()
217 scaled_h = css_h * wdata->pixel_ratio; in Emscripten_CreateWindow()
225 if (wdata->pixel_ratio != 1.0f) { in Emscripten_CreateWindow()
266 data->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_SetWindowSize()
267 emscripten_set_canvas_size(window->w * data->pixel_ratio, window->h * data->pixel_ratio); in Emscripten_SetWindowSize()
270 if (!data->external_size && data->pixel_ratio != 1.0f) { in Emscripten_SetWindowSize()
DSDL_emscriptenopengles.c105 *w = window->w * data->pixel_ratio; in SDL_EGL_SwapWindow_impl()
109 *h = window->h * data->pixel_ratio; in SDL_EGL_SwapWindow_impl()
DSDL_emscriptenvideo.h41 float pixel_ratio; member
DSDL_emscriptenevents.c550 window_data->pixel_ratio = emscripten_get_device_pixel_ratio(); in Emscripten_HandleResize()
564 emscripten_set_canvas_size(w * window_data->pixel_ratio, h * window_data->pixel_ratio); in Emscripten_HandleResize()
567 if (!window_data->external_size && window_data->pixel_ratio != 1.0f) { in Emscripten_HandleResize()
/third_party/flutter/engine/flutter/shell/platform/windows/
Dwin32_flutter_window.cc185 event.pixel_ratio = static_cast<double>(GetCurrentDPI()) / base_dpi; in SendWindowMetrics()
/third_party/flutter/engine/flutter/shell/platform/embedder/
Dembedder.h203 double pixel_ratio; member
Dace_embedder.cc764 metrics.device_pixel_ratio = SAFE_ACCESS(flutter_metrics, pixel_ratio, 1.0); in FlutterEngineSendWindowMetricsEvent()
Dembedder.cc965 metrics.device_pixel_ratio = SAFE_ACCESS(flutter_metrics, pixel_ratio, 1.0); in FlutterEngineSendWindowMetricsEvent()
/third_party/flutter/engine/flutter/shell/platform/glfw/
Dflutter_glfw.cc137 event.pixel_ratio = std::max(dpi / kDpPerInch, 1.0); in SendWindowMetrics()
/third_party/flutter/engine/flutter/shell/platform/darwin/macos/framework/Source/
DFlutterEngine.mm248 .pixel_ratio = pixelRatio,