summaryrefslogtreecommitdiffstats
path: root/ui/snapshot
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2016-01-26 17:30:36 -0800
committerCommit bot <commit-bot@chromium.org>2016-01-27 01:31:58 +0000
commitfb33c340bd50b0e8a5c874e5d7c10a6361cee126 (patch)
treebb7a28d9d333accda14d8cbce5d9c6e7b4f51698 /ui/snapshot
parentbfe14dd182c7c660eb27265dfeec462768af2422 (diff)
downloadchromium_src-fb33c340bd50b0e8a5c874e5d7c10a6361cee126.zip
chromium_src-fb33c340bd50b0e8a5c874e5d7c10a6361cee126.tar.gz
chromium_src-fb33c340bd50b0e8a5c874e5d7c10a6361cee126.tar.bz2
Remove ui/gfx/screen_type_delegate.h
This removes gfx::SCREEN_TYPE_NATIVE/SCREEN_TYPE_ALTERNATE, and there is now only one Screen instance. It's still a runtime-installed thing for test purposes. TBR=various owners for trivial changes R=oshima@chromium.org, sky@chromium.org BUG=558054 Review URL: https://codereview.chromium.org/1608733002 Cr-Commit-Position: refs/heads/master@{#371676}
Diffstat (limited to 'ui/snapshot')
-rw-r--r--ui/snapshot/snapshot_android.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/snapshot/snapshot_android.cc b/ui/snapshot/snapshot_android.cc
index 0a123b9..fb7d40d 100644
--- a/ui/snapshot/snapshot_android.cc
+++ b/ui/snapshot/snapshot_android.cc
@@ -41,8 +41,7 @@ static void MakeAsyncCopyRequest(
scoped_ptr<cc::CopyOutputRequest> request =
cc::CopyOutputRequest::CreateBitmapRequest(callback);
- const gfx::Display& display =
- gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
+ const gfx::Display& display = gfx::Screen::GetScreen()->GetPrimaryDisplay();
float device_scale_factor = display.device_scale_factor();
gfx::Rect source_rect_in_pixel =
gfx::ScaleToEnclosingRect(source_rect, device_scale_factor);