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

Side by Side Diff: cc/trees/threaded_channel.cc

Issue 2231093003: cc: Remove FinishAllRendering, as it doesn't do anything anymore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finishallrendering: . Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/threaded_channel.h" 5 #include "cc/trees/threaded_channel.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 proxy_impl_weak_ptr_, damage_rect)); 109 proxy_impl_weak_ptr_, damage_rect));
110 } 110 }
111 111
112 void ThreadedChannel::SetVisibleOnImpl(bool visible) { 112 void ThreadedChannel::SetVisibleOnImpl(bool visible) {
113 DCHECK(IsMainThread()); 113 DCHECK(IsMainThread());
114 ImplThreadTaskRunner()->PostTask( 114 ImplThreadTaskRunner()->PostTask(
115 FROM_HERE, 115 FROM_HERE,
116 base::Bind(&ProxyImpl::SetVisibleOnImpl, proxy_impl_weak_ptr_, visible)); 116 base::Bind(&ProxyImpl::SetVisibleOnImpl, proxy_impl_weak_ptr_, visible));
117 } 117 }
118 118
119 void ThreadedChannel::FinishAllRenderingOnImpl(CompletionEvent* completion) {
120 DCHECK(IsMainThread());
121 ImplThreadTaskRunner()->PostTask(
122 FROM_HERE, base::Bind(&ProxyImpl::FinishAllRenderingOnImpl,
123 proxy_impl_weak_ptr_, completion));
124 }
125
126 void ThreadedChannel::ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) { 119 void ThreadedChannel::ReleaseOutputSurfaceOnImpl(CompletionEvent* completion) {
127 DCHECK(IsMainThread()); 120 DCHECK(IsMainThread());
128 ImplThreadTaskRunner()->PostTask( 121 ImplThreadTaskRunner()->PostTask(
129 FROM_HERE, base::Bind(&ProxyImpl::ReleaseOutputSurfaceOnImpl, 122 FROM_HERE, base::Bind(&ProxyImpl::ReleaseOutputSurfaceOnImpl,
130 proxy_impl_weak_ptr_, completion)); 123 proxy_impl_weak_ptr_, completion));
131 } 124 }
132 125
133 void ThreadedChannel::MainFrameWillHappenOnImplForTesting( 126 void ThreadedChannel::MainFrameWillHappenOnImplForTesting(
134 CompletionEvent* completion, 127 CompletionEvent* completion,
135 bool* main_frame_will_happen) { 128 bool* main_frame_will_happen) {
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 349
357 ThreadedChannel::MainThreadOnly::~MainThreadOnly() {} 350 ThreadedChannel::MainThreadOnly::~MainThreadOnly() {}
358 351
359 ThreadedChannel::CompositorThreadOnly::CompositorThreadOnly( 352 ThreadedChannel::CompositorThreadOnly::CompositorThreadOnly(
360 base::WeakPtr<ProxyMain> proxy_main_weak_ptr) 353 base::WeakPtr<ProxyMain> proxy_main_weak_ptr)
361 : proxy_main_weak_ptr(proxy_main_weak_ptr) {} 354 : proxy_main_weak_ptr(proxy_main_weak_ptr) {}
362 355
363 ThreadedChannel::CompositorThreadOnly::~CompositorThreadOnly() {} 356 ThreadedChannel::CompositorThreadOnly::~CompositorThreadOnly() {}
364 357
365 } // namespace cc 358 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/threaded_channel.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698