| Index: services/ui/ws/platform_display.cc
|
| diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
|
| index 974feab54360cc262a2d0c12bd583d4c007a1418..3073cba44cf834ccaf216713039dcbcf8eec5775 100644
|
| --- a/services/ui/ws/platform_display.cc
|
| +++ b/services/ui/ws/platform_display.cc
|
| @@ -101,18 +101,6 @@ DefaultPlatformDisplay::~DefaultPlatformDisplay() {
|
| platform_window_.reset();
|
| }
|
|
|
| -void DefaultPlatformDisplay::SchedulePaint(const ServerWindow* window,
|
| - const gfx::Rect& bounds) {
|
| - DCHECK(window);
|
| - if (!window->IsDrawn())
|
| - return;
|
| - const gfx::Rect root_relative_rect =
|
| - ConvertRectBetweenWindows(window, delegate_->GetRootWindow(), bounds);
|
| - if (root_relative_rect.IsEmpty())
|
| - return;
|
| - frame_generator_->RequestRedraw(root_relative_rect);
|
| -}
|
| -
|
| void DefaultPlatformDisplay::SetViewportSize(const gfx::Size& size) {
|
| platform_window_->SetBounds(gfx::Rect(size));
|
| }
|
| @@ -155,10 +143,6 @@ void DefaultPlatformDisplay::SetImeVisibility(bool visible) {
|
| ime->SetImeVisibility(visible);
|
| }
|
|
|
| -bool DefaultPlatformDisplay::IsFramePending() const {
|
| - return frame_generator_->is_frame_pending();
|
| -}
|
| -
|
| gfx::Rect DefaultPlatformDisplay::GetBounds() const {
|
| return metrics_.bounds;
|
| }
|
| @@ -209,7 +193,6 @@ void DefaultPlatformDisplay::OnBoundsChanged(const gfx::Rect& new_bounds) {
|
| }
|
|
|
| void DefaultPlatformDisplay::OnDamageRect(const gfx::Rect& damaged_region) {
|
| - frame_generator_->RequestRedraw(damaged_region);
|
| }
|
|
|
| void DefaultPlatformDisplay::DispatchEvent(ui::Event* event) {
|
| @@ -281,10 +264,6 @@ void DefaultPlatformDisplay::OnAcceleratedWidgetDestroyed() {
|
|
|
| void DefaultPlatformDisplay::OnActivationChanged(bool active) {}
|
|
|
| -ServerWindow* DefaultPlatformDisplay::GetRootWindow() {
|
| - return delegate_->GetRootWindow();
|
| -}
|
| -
|
| bool DefaultPlatformDisplay::IsInHighContrastMode() {
|
| return delegate_ ? delegate_->IsInHighContrastMode() : false;
|
| }
|
|
|