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

Unified Diff: third_party/WebKit/Source/web/CompositorMutatorImpl.cpp

Issue 2765053002: Avoid exposing cc::Layer tree to CompositorProxy (Closed)
Patch Set: Rebase onto blink reformat Created 3 years, 8 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: third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
diff --git a/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp b/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
index ff18628f88a1cfdcc13aef1fcbeabafd68dae2b1..f8c223c5622acc7334ebd25a51d94f79e536bb2c 100644
--- a/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
+++ b/third_party/WebKit/Source/web/CompositorMutatorImpl.cpp
@@ -96,4 +96,19 @@ void CompositorMutatorImpl::SetNeedsMutate() {
client_->SetNeedsMutate();
}
+void CompositorMutatorImpl::RegisterCompositorProxy(
+ const CompositorProxy* proxy) {
+ TRACE_EVENT0("compositor-worker",
+ "CompositorMutatorImpl::registerCompositorProxy");
+ client_->RegisterCompositorProxy(proxy->ProxyId(), proxy->ElementId(),
+ proxy->CompositorMutableProperties());
+}
+
+void CompositorMutatorImpl::UnregisterCompositorProxy(
+ const CompositorProxy* proxy) {
+ TRACE_EVENT0("compositor-worker",
+ "CompositorMutatorImpl::unregisterCompositorProxy");
+ client_->UnregisterCompositorProxy(proxy->ProxyId());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698