| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/output/compositor_frame_sink.h" | 5 #include "cc/output/compositor_frame_sink.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 if (context_provider_.get()) { | 71 if (context_provider_.get()) { |
| 72 context_provider_->SetLostContextCallback( | 72 context_provider_->SetLostContextCallback( |
| 73 ContextProvider::LostContextCallback()); | 73 ContextProvider::LostContextCallback()); |
| 74 } | 74 } |
| 75 // Destroy the ContextProvider on the bound thread. | 75 // Destroy the ContextProvider on the bound thread. |
| 76 context_provider_ = nullptr; | 76 context_provider_ = nullptr; |
| 77 client_ = nullptr; | 77 client_ = nullptr; |
| 78 } | 78 } |
| 79 | 79 |
| 80 SurfaceId CompositorFrameSink::GetSurfaceId() const { |
| 81 return SurfaceId(); |
| 82 } |
| 83 |
| 80 void CompositorFrameSink::DidLoseCompositorFrameSink() { | 84 void CompositorFrameSink::DidLoseCompositorFrameSink() { |
| 81 TRACE_EVENT0("cc", "CompositorFrameSink::DidLoseCompositorFrameSink"); | 85 TRACE_EVENT0("cc", "CompositorFrameSink::DidLoseCompositorFrameSink"); |
| 82 client_->DidLoseCompositorFrameSink(); | 86 client_->DidLoseCompositorFrameSink(); |
| 83 } | 87 } |
| 84 | 88 |
| 85 } // namespace cc | 89 } // namespace cc |
| OLD | NEW |