| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |