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

Unified Diff: cc/trees/threaded_channel.cc

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | content/browser/android/synchronous_compositor_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/threaded_channel.cc
diff --git a/cc/trees/threaded_channel.cc b/cc/trees/threaded_channel.cc
index 652aa68dd8fe5076689104cab59b4ed79cf1d4e6..65e4dfbce9384de081646939c0ecbfb81c6980b0 100644
--- a/cc/trees/threaded_channel.cc
+++ b/cc/trees/threaded_channel.cc
@@ -47,11 +47,11 @@ void ThreadedChannel::UpdateTopControlsStateOnImpl(TopControlsState constraints,
constraints, current, animate));
}
-void ThreadedChannel::InitializeOutputSurfaceOnImpl(
- OutputSurface* output_surface) {
+void ThreadedChannel::InitializeCompositorFrameSinkOnImpl(
+ CompositorFrameSink* output_surface) {
DCHECK(IsMainThread());
ImplThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&ProxyImpl::InitializeOutputSurfaceOnImpl,
+ FROM_HERE, base::Bind(&ProxyImpl::InitializeCompositorFrameSinkOnImpl,
proxy_impl_weak_ptr_, output_surface));
}
@@ -116,10 +116,11 @@ void ThreadedChannel::SetVisibleOnImpl(bool visible) {
base::Bind(&ProxyImpl::SetVisibleOnImpl, proxy_impl_weak_ptr_, visible));
}
-void ThreadedChannel::ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) {
+void ThreadedChannel::ReleaseCompositorFrameSinkOnImpl(
+ CompletionEvent* completion) {
DCHECK(IsMainThread());
ImplThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&ProxyImpl::ReleaseOutputSurfaceOnImpl,
+ FROM_HERE, base::Bind(&ProxyImpl::ReleaseCompositorFrameSinkOnImpl,
proxy_impl_weak_ptr_, completion));
}
@@ -221,24 +222,24 @@ void ThreadedChannel::SetAnimationEvents(
impl().proxy_main_weak_ptr, base::Passed(&events)));
}
-void ThreadedChannel::DidLoseOutputSurface() {
+void ThreadedChannel::DidLoseCompositorFrameSink() {
DCHECK(IsImplThread());
MainThreadTaskRunner()->PostTask(
- FROM_HERE,
- base::Bind(&ProxyMain::DidLoseOutputSurface, impl().proxy_main_weak_ptr));
+ FROM_HERE, base::Bind(&ProxyMain::DidLoseCompositorFrameSink,
+ impl().proxy_main_weak_ptr));
}
-void ThreadedChannel::RequestNewOutputSurface() {
+void ThreadedChannel::RequestNewCompositorFrameSink() {
DCHECK(IsImplThread());
MainThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&ProxyMain::RequestNewOutputSurface,
+ FROM_HERE, base::Bind(&ProxyMain::RequestNewCompositorFrameSink,
impl().proxy_main_weak_ptr));
}
-void ThreadedChannel::DidInitializeOutputSurface(bool success) {
+void ThreadedChannel::DidInitializeCompositorFrameSink(bool success) {
DCHECK(IsImplThread());
MainThreadTaskRunner()->PostTask(
- FROM_HERE, base::Bind(&ProxyMain::DidInitializeOutputSurface,
+ FROM_HERE, base::Bind(&ProxyMain::DidInitializeCompositorFrameSink,
impl().proxy_main_weak_ptr, success));
}
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | content/browser/android/synchronous_compositor_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698