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

Side by Side Diff: ui/compositor/compositor.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 | « ui/compositor/compositor.h ('k') | ui/compositor/test/in_process_context_factory.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <deque> 10 #include <deque>
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 OnCompositingStarted(this, start_time)); 455 OnCompositingStarted(this, start_time));
456 } 456 }
457 457
458 void Compositor::DidAbortSwapBuffers() { 458 void Compositor::DidAbortSwapBuffers() {
459 FOR_EACH_OBSERVER(CompositorObserver, 459 FOR_EACH_OBSERVER(CompositorObserver,
460 observer_list_, 460 observer_list_,
461 OnCompositingAborted(this)); 461 OnCompositingAborted(this));
462 } 462 }
463 463
464 void Compositor::SetOutputIsSecure(bool output_is_secure) { 464 void Compositor::SetOutputIsSecure(bool output_is_secure) {
465 host_->SetOutputIsSecure(output_is_secure); 465 context_factory_->SetOutputIsSecure(this, output_is_secure);
466 host_->SetNeedsRedraw();
467 } 466 }
468 467
469 const cc::LayerTreeDebugState& Compositor::GetLayerTreeDebugState() const { 468 const cc::LayerTreeDebugState& Compositor::GetLayerTreeDebugState() const {
470 return host_->debug_state(); 469 return host_->debug_state();
471 } 470 }
472 471
473 void Compositor::SetLayerTreeDebugState( 472 void Compositor::SetLayerTreeDebugState(
474 const cc::LayerTreeDebugState& debug_state) { 473 const cc::LayerTreeDebugState& debug_state) {
475 host_->SetDebugState(debug_state); 474 host_->SetDebugState(debug_state);
476 } 475 }
(...skipping 21 matching lines...) Expand all
498 observer_list_, 497 observer_list_,
499 OnCompositingLockStateChanged(this)); 498 OnCompositingLockStateChanged(this));
500 } 499 }
501 500
502 void Compositor::CancelCompositorLock() { 501 void Compositor::CancelCompositorLock() {
503 if (compositor_lock_) 502 if (compositor_lock_)
504 compositor_lock_->CancelLock(); 503 compositor_lock_->CancelLock();
505 } 504 }
506 505
507 } // namespace ui 506 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/test/in_process_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698