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

Unified Diff: chrome/browser/android/compositor/layer/thumbnail_layer.cc

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 3 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: chrome/browser/android/compositor/layer/thumbnail_layer.cc
diff --git a/chrome/browser/android/compositor/layer/thumbnail_layer.cc b/chrome/browser/android/compositor/layer/thumbnail_layer.cc
index b18555ac593fe9416546bf2e670d1fc9d5b93d0d..6be1445f3400f53013d56285edb2b08fe34e68ca 100644
--- a/chrome/browser/android/compositor/layer/thumbnail_layer.cc
+++ b/chrome/browser/android/compositor/layer/thumbnail_layer.cc
@@ -24,9 +24,8 @@ void ThumbnailLayer::SetThumbnail(Thumbnail* thumbnail) {
void ThumbnailLayer::Clip(const gfx::Rect& clipping) {
last_clipping_ = clipping;
- gfx::Size clipped_content =
- gfx::ToCeiledSize(gfx::Size(content_size_.width() - clipping.x(),
- content_size_.height() - clipping.y()));
+ gfx::Size clipped_content = gfx::Size(content_size_.width() - clipping.x(),
+ content_size_.height() - clipping.y());
clipped_content.SetToMin(clipping.size());
layer_->SetBounds(clipped_content);
« no previous file with comments | « cc/trees/property_tree_builder.cc ('k') | chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698