| Index: components/native_viewport/native_viewport_impl.cc
|
| diff --git a/components/native_viewport/native_viewport_impl.cc b/components/native_viewport/native_viewport_impl.cc
|
| index 1b1e548df7aad8416a159b9f3acdc44806c2f58f..2f85500088553deddbbbaca9b657e83e1ddf9dfe 100644
|
| --- a/components/native_viewport/native_viewport_impl.cc
|
| +++ b/components/native_viewport/native_viewport_impl.cc
|
| @@ -99,7 +99,9 @@ void NativeViewportImpl::OnMetricsChanged(mojo::ViewportMetricsPtr metrics) {
|
| }
|
|
|
| void NativeViewportImpl::OnAcceleratedWidgetAvailable(
|
| - gfx::AcceleratedWidget widget) {
|
| + gfx::AcceleratedWidget widget,
|
| + float device_pixel_ratio) {
|
| + metrics_->device_pixel_ratio = device_pixel_ratio;
|
| context_provider_.SetAcceleratedWidget(widget);
|
| // TODO: The metrics here might not match the actual window size on android
|
| // where we don't know the actual size until the first OnMetricsChanged call.
|
|
|