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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 } 396 }
397 397
398 bool RenderWidgetHostViewBase::GetBackgroundOpaque() { 398 bool RenderWidgetHostViewBase::GetBackgroundOpaque() {
399 return SkColorGetA(background_color_) == SK_AlphaOPAQUE; 399 return SkColorGetA(background_color_) == SK_AlphaOPAQUE;
400 } 400 }
401 401
402 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const { 402 gfx::Size RenderWidgetHostViewBase::GetPhysicalBackingSize() const {
403 gfx::NativeView view = GetNativeView(); 403 gfx::NativeView view = GetNativeView();
404 gfx::Display display = 404 gfx::Display display =
405 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view); 405 gfx::Screen::GetScreenFor(view)->GetDisplayNearestWindow(view);
406 return gfx::ToCeiledSize(gfx::ScaleSize(GetRequestedRendererSize(), 406 return gfx::ScaleToCeiledSize(GetRequestedRendererSize(),
407 display.device_scale_factor())); 407 display.device_scale_factor());
408 } 408 }
409 409
410 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { 410 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const {
411 return false; 411 return false;
412 } 412 }
413 413
414 float RenderWidgetHostViewBase::GetTopControlsHeight() const { 414 float RenderWidgetHostViewBase::GetTopControlsHeight() const {
415 return 0.f; 415 return 0.f;
416 } 416 }
417 417
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 } 676 }
677 677
678 uint32_t RenderWidgetHostViewBase::SurfaceIdNamespaceAtPoint( 678 uint32_t RenderWidgetHostViewBase::SurfaceIdNamespaceAtPoint(
679 const gfx::Point& point, 679 const gfx::Point& point,
680 gfx::Point* transformed_point) { 680 gfx::Point* transformed_point) {
681 NOTREACHED(); 681 NOTREACHED();
682 return 0; 682 return 0;
683 } 683 }
684 684
685 } // namespace content 685 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698