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

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

Issue 2474113002: Mus+Ash: Unified BeginFrame Skeleton (Closed)
Patch Set: Rebase 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
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 7b0fedb3a279fc6526f05f13e2411b95a7eec0e1..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) {
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698