Index: ui/compositor/layer.cc |
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc |
index 7e7964900876cb70a32b835c53a83ef05d51e087..c3856ccb799d7fc6fe09bdf4ea4ed796f29e99e2 100644 |
--- a/ui/compositor/layer.cc |
+++ b/ui/compositor/layer.cc |
@@ -749,10 +749,12 @@ void Layer::RecomputeDrawsContentAndUVRect() { |
DCHECK(texture_); |
gfx::Size texture_size; |
- if (scale_content_) |
+ if (scale_content_) { |
texture_size = texture_->size(); |
- else |
- texture_size = ConvertSizeToDIP(this, texture_->size()); |
+ } else { |
+ texture_size = |
+ texture_->size().Scale(1.0f / texture_->device_scale_factor()); |
+ } |
gfx::Size size(std::min(bounds().width(), texture_size.width()), |
std::min(bounds().height(), texture_size.height())); |