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

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

Issue 750173002: Move dip utils to gfx/geometry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missed android change Created 6 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | ui/compositor/dip_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/software_frame_manager.cc
diff --git a/content/browser/renderer_host/software_frame_manager.cc b/content/browser/renderer_host/software_frame_manager.cc
index 08ac5000a14fb40257594e810e3a3b8b5d60fefd..2a87c8569c303ab77b4985d14638865df0d43434 100644
--- a/content/browser/renderer_host/software_frame_manager.cc
+++ b/content/browser/renderer_host/software_frame_manager.cc
@@ -9,9 +9,9 @@
#include "base/debug/alias.h"
#include "base/numerics/safe_math.h"
#include "cc/resources/shared_bitmap.h"
-#include "content/browser/renderer_host/dip_util.h"
#include "content/common/host_shared_bitmap_manager.h"
#include "content/public/browser/user_metrics.h"
+#include "ui/gfx/geometry/dip_util.h"
namespace {
@@ -166,8 +166,8 @@ gfx::Size SoftwareFrameManager::GetCurrentFrameSizeInPixels() const {
gfx::Size SoftwareFrameManager::GetCurrentFrameSizeInDIP() const {
DCHECK(HasCurrentFrame());
- return ConvertSizeToDIP(current_frame_->frame_device_scale_factor_,
- current_frame_->frame_size_pixels_);
+ return gfx::ConvertSizeToDIP(current_frame_->frame_device_scale_factor_,
+ current_frame_->frame_size_pixels_);
}
void SoftwareFrameManager::EvictCurrentFrame() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | ui/compositor/dip_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698