Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: ui/compositor/layer.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index c96ac53612f229a1994e0cadef309be998b24e21..d03a1b4062b57efc9d51372182023a2dfb152825 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.ClampToUpperBound(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.ClampToUpperBound(delegated_frame_size_in_dip_);
}
cc_layer_->SetBounds(ConvertSizeToPixel(this, size));
}

Powered by Google App Engine
This is Rietveld 408576698