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

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

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/single_thread_proxy.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/remote_channel_impl.h" 5 #include "cc/trees/remote_channel_impl.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "cc/animation/animation_events.h" 10 #include "cc/animation/animation_events.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 bool RemoteChannelImpl::SupportsImplScrolling() const { 300 bool RemoteChannelImpl::SupportsImplScrolling() const {
301 return true; 301 return true;
302 } 302 }
303 303
304 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints, 304 void RemoteChannelImpl::UpdateTopControlsState(TopControlsState constraints,
305 TopControlsState current, 305 TopControlsState current,
306 bool animate) { 306 bool animate) {
307 NOTREACHED() << "Should not be called on the remote client LayerTreeHost"; 307 NOTREACHED() << "Should not be called on the remote client LayerTreeHost";
308 } 308 }
309 309
310 void RemoteChannelImpl::SetOutputIsSecure(bool output_is_secure) {
311 NOTREACHED() << "Only used by SingleProxyMain";
312 }
313
314 bool RemoteChannelImpl::MainFrameWillHappenForTesting() { 310 bool RemoteChannelImpl::MainFrameWillHappenForTesting() {
315 DCHECK(task_runner_provider_->IsMainThread()); 311 DCHECK(task_runner_provider_->IsMainThread());
316 bool main_frame_will_happen; 312 bool main_frame_will_happen;
317 { 313 {
318 CompletionEvent completion; 314 CompletionEvent completion;
319 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_); 315 DebugScopedSetMainThreadBlocked main_thread_blocked(task_runner_provider_);
320 ImplThreadTaskRunner()->PostTask( 316 ImplThreadTaskRunner()->PostTask(
321 FROM_HERE, 317 FROM_HERE,
322 base::Bind(&ProxyImpl::MainFrameWillHappenOnImplForTesting, 318 base::Bind(&ProxyImpl::MainFrameWillHappenOnImplForTesting,
323 proxy_impl_weak_ptr_, &completion, &main_frame_will_happen)); 319 proxy_impl_weak_ptr_, &completion, &main_frame_will_happen));
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 529
534 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly( 530 RemoteChannelImpl::CompositorThreadOnly::CompositorThreadOnly(
535 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr) 531 base::WeakPtr<RemoteChannelImpl> remote_channel_weak_ptr)
536 : proxy_impl(nullptr), 532 : proxy_impl(nullptr),
537 proxy_impl_weak_factory(nullptr), 533 proxy_impl_weak_factory(nullptr),
538 remote_channel_weak_ptr(remote_channel_weak_ptr) {} 534 remote_channel_weak_ptr(remote_channel_weak_ptr) {}
539 535
540 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {} 536 RemoteChannelImpl::CompositorThreadOnly::~CompositorThreadOnly() {}
541 537
542 } // namespace cc 538 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/remote_channel_impl.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698