| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index a0c54fa90f4e5b200154a4163eaf152026dca4de..d71be5383f658c8d9aedd324ad87113d6af4ab95 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -223,6 +223,7 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host)
|
| text_input_type_(ui::TEXT_INPUT_TYPE_NONE),
|
| can_compose_inline_(true),
|
| has_composition_text_(false),
|
| + device_scale_factor_(1.0f),
|
| current_surface_(0),
|
| current_surface_is_protected_(true),
|
| current_surface_in_use_by_compositor_(true),
|
| @@ -863,7 +864,8 @@ void RenderWidgetHostViewAura::AcceleratedSurfaceNew(
|
| uint64 surface_handle) {
|
| ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
|
| scoped_refptr<ui::Texture> surface(factory->CreateTransportClient(
|
| - gfx::Size(width_in_pixel, height_in_pixel), surface_handle));
|
| + gfx::Size(width_in_pixel, height_in_pixel), device_scale_factor_,
|
| + surface_handle));
|
| if (!surface) {
|
| LOG(ERROR) << "Failed to create ImageTransport texture";
|
| return;
|
| @@ -1286,6 +1288,7 @@ void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged(
|
| if (!host_)
|
| return;
|
|
|
| + device_scale_factor_ = device_scale_factor;
|
| BackingStoreAura* backing_store = static_cast<BackingStoreAura*>(
|
| host_->GetBackingStore(false));
|
| if (backing_store) // NULL in hardware path.
|
| @@ -1341,7 +1344,8 @@ scoped_refptr<ui::Texture> RenderWidgetHostViewAura::CopyTexture() {
|
| return scoped_refptr<ui::Texture>();
|
|
|
| return scoped_refptr<ui::Texture>(
|
| - factory->CreateOwnedTexture(container->size(), texture_id));
|
| + factory->CreateOwnedTexture(
|
| + container->size(), device_scale_factor_, texture_id));
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|