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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 11377068: ui: Make gfx::Size::Scale() mutate the class. Add gfx::ScaleSize() similar to Rect/Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseTOGO Created 8 years, 1 month 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: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index ff7187ab38b87bc0d46b4b1b66eb6b2254db370c..cf1e3ecf3cbc15939d47eac31ccb722992545834 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1499,7 +1499,7 @@ void RenderWidgetHostImpl::OnMsgUpdateRect(
if (dib) {
DCHECK(!params.bitmap_rect.IsEmpty());
gfx::Size pixel_size = gfx::ToFlooredSize(
- params.bitmap_rect.size().Scale(params.scale_factor));
+ gfx::ScaleSize(params.bitmap_rect.size(), params.scale_factor));
const size_t size = pixel_size.height() * pixel_size.width() * 4;
if (dib->size() < size) {
DLOG(WARNING) << "Transport DIB too small for given rectangle";
« no previous file with comments | « content/browser/renderer_host/dip_util.cc ('k') | content/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698