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

Unified Diff: ui/views/drag_utils.cc

Issue 2694023003: Make CanvasPainter raster directly to an SkBitmap (Closed)
Patch Set: Replace CanvasPainter rect with size Created 3 years, 10 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
« ui/views/drag_utils.h ('K') | « ui/views/drag_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/drag_utils.cc
diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc
index f9e6c8be5ab607d7122bca1385181057e1780f2a..8952624610e5954c8d512cfd26474b8111effb53 100644
--- a/ui/views/drag_utils.cc
+++ b/ui/views/drag_utils.cc
@@ -10,7 +10,7 @@
#include "ui/gfx/geometry/size.h"
#include "ui/views/widget/widget.h"
-namespace {
+namespace views {
float GetDeviceScaleForNativeView(views::Widget* widget) {
float device_scale = 1.0f;
@@ -23,10 +23,6 @@ float GetDeviceScaleForNativeView(views::Widget* widget) {
return device_scale;
}
-} // namespace
-
-namespace views {
-
gfx::Canvas* GetCanvasForDragImage(views::Widget* widget,
const gfx::Size& canvas_size) {
float device_scale = GetDeviceScaleForNativeView(widget);
« ui/views/drag_utils.h ('K') | « ui/views/drag_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698