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

Unified Diff: chrome/browser/tab_contents/thumbnail_generator.cc

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix other os's Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/thumbnail_generator.cc
diff --git a/chrome/browser/tab_contents/thumbnail_generator.cc b/chrome/browser/tab_contents/thumbnail_generator.cc
index 09ce31ac785b45f036c4a5c25e822216b662a5bf..a8492d2ec459771cf9b2bd187cca199d5665698d 100644
--- a/chrome/browser/tab_contents/thumbnail_generator.cc
+++ b/chrome/browser/tab_contents/thumbnail_generator.cc
@@ -128,7 +128,8 @@ gfx::Size GetThumbnailSizeInPixel() {
gfx::Size thumbnail_size(kThumbnailWidth, kThumbnailHeight);
// Determine the resolution of the thumbnail based on the primary monitor.
// TODO(oshima): Use device's default scale factor.
- gfx::Display primary_display = gfx::Screen::GetPrimaryDisplay();
+ gfx::Display primary_display = gfx::Screen::GetPrimaryDisplay(
+ gfx::Screen::BadTwoWorldsContext());
return thumbnail_size.Scale(primary_display.device_scale_factor());
}

Powered by Google App Engine
This is Rietveld 408576698