Index: ui/compositor/layer.cc |
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc |
index 6a3308e08305f5a1da6b0bd4302ba6b9bc4096ed..cd5f7f3a8946ad83e556594fdd262089a8a86689 100644 |
--- a/ui/compositor/layer.cc |
+++ b/ui/compositor/layer.cc |
@@ -924,7 +924,7 @@ void Layer::RecomputeDrawsContentAndUVRect() { |
float texture_scale_factor = 1.0f / texture_->device_scale_factor(); |
gfx::Size texture_size = gfx::ToFlooredSize( |
gfx::ScaleSize(texture_->size(), texture_scale_factor)); |
- size.ClampToMax(texture_size); |
+ size.SetToMin(texture_size); |
gfx::PointF uv_top_left(0.f, 0.f); |
gfx::PointF uv_bottom_right( |
@@ -934,7 +934,7 @@ void Layer::RecomputeDrawsContentAndUVRect() { |
} else if (delegated_renderer_layer_.get()) { |
delegated_renderer_layer_->SetDisplaySize( |
ConvertSizeToPixel(this, delegated_frame_size_in_dip_)); |
- size.ClampToMax(delegated_frame_size_in_dip_); |
+ size.SetToMin(delegated_frame_size_in_dip_); |
} |
cc_layer_->SetBounds(ConvertSizeToPixel(this, size)); |
} |