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

Unified Diff: ash/wm/image_grid.cc

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix Created 8 years, 7 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
« no previous file with comments | « ash/wm/image_grid.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/image_grid.cc
diff --git a/ash/wm/image_grid.cc b/ash/wm/image_grid.cc
index c9c982fae9bcaa8fe1513ab36fffa5d1eeeebf39..f5a1c461f58a5d56959686a148817885a434bf4d 100644
--- a/ash/wm/image_grid.cc
+++ b/ash/wm/image_grid.cc
@@ -230,6 +230,11 @@ void ImageGrid::ImagePainter::OnPaintLayer(gfx::Canvas* canvas) {
canvas->DrawBitmapInt(*(image_->ToSkBitmap()), 0, 0);
}
+void ImageGrid::ImagePainter::OnDeviceScaleFactorChanged(
+ float device_scale_factor) {
+ // Redrawing will take care of scale factor change.
+}
+
// static
gfx::Size ImageGrid::GetImageSize(const gfx::Image* image) {
return image ?
« no previous file with comments | « ash/wm/image_grid.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698