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

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

Issue 2474113002: Mus+Ash: Unified BeginFrame Skeleton (Closed)
Patch Set: Remove window_tree.mojom.h Created 4 years, 1 month 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: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 7b94b426e5750c85198155dd6547ae130ef8198e..72ff4cb7e1eddb5b58c9608f5779186b40b29752 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -103,18 +103,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));
}
@@ -157,10 +145,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;
}
@@ -211,7 +195,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) {

Powered by Google App Engine
This is Rietveld 408576698