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

Unified Diff: services/ui/ws/platform_display_default.cc

Issue 2651843002: FrameGenerator should receive SurfaceInfo and use it in frame generation (Closed)
Patch Set: c Created 3 years, 11 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 | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display_default.cc
diff --git a/services/ui/ws/platform_display_default.cc b/services/ui/ws/platform_display_default.cc
index ba50d304de71e5c49d5ddb1ad6b59cdc2821b125..c9f1b97ccc98c56b20ec76d3d5a2f304da4e14c9 100644
--- a/services/ui/ws/platform_display_default.cc
+++ b/services/ui/ws/platform_display_default.cc
@@ -38,7 +38,7 @@ PlatformDisplayDefault::PlatformDisplayDefault(
frame_generator_(new FrameGenerator(this, init_params.root_window)),
metrics_(init_params.metrics),
widget_(gfx::kNullAcceleratedWidget) {
- frame_generator_->set_device_scale_factor(
+ frame_generator_->SetDeviceScaleFactor(
init_params.metrics.device_scale_factor);
}
@@ -149,7 +149,7 @@ bool PlatformDisplayDefault::UpdateViewportMetrics(
}
metrics_ = metrics;
- frame_generator_->set_device_scale_factor(metrics_.device_scale_factor);
+ frame_generator_->SetDeviceScaleFactor(metrics_.device_scale_factor);
return true;
}
@@ -255,10 +255,6 @@ void PlatformDisplayDefault::OnAcceleratedWidgetDestroyed() {
void PlatformDisplayDefault::OnActivationChanged(bool active) {}
-ServerWindow* PlatformDisplayDefault::GetActiveRootWindow() {
- return delegate_->GetActiveRootWindow();
-}
-
bool PlatformDisplayDefault::IsInHighContrastMode() {
return delegate_ ? delegate_->IsInHighContrastMode() : false;
}
« no previous file with comments | « services/ui/ws/platform_display_default.h ('k') | services/ui/ws/platform_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698