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

Unified Diff: ui/aura/window.cc

Issue 2878113002: mus: Embedder can request and observe BeginFrame for embedded client. (Closed)
Patch Set: . Created 3 years, 7 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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 714c9f0229731d40794e89b3affb0f7c99786b30..efaf79eb843a30c476fa830c4fd958c179eebe53 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -999,6 +999,10 @@ cc::SurfaceId Window::GetSurfaceId() const {
return port_->GetSurfaceId();
}
+void Window::SetNeedsBeginFrames(bool needs, base::RepeatingClosure callback) {
+ port_->SetNeedsBeginFrames(needs, std::move(callback));
+}
+
void Window::OnPaintLayer(const ui::PaintContext& context) {
Paint(context);
}

Powered by Google App Engine
This is Rietveld 408576698