| 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/output_surface.h" | 5 #include "cc/output/output_surface.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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 weak_ptr_factory_(this) { | 135 weak_ptr_factory_(this) { |
| 136 client_thread_checker_.DetachFromThread(); | 136 client_thread_checker_.DetachFromThread(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 // Forwarded to OutputSurfaceClient | 139 // Forwarded to OutputSurfaceClient |
| 140 void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { | 140 void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
| 141 TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect"); | 141 TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect"); |
| 142 client_->SetNeedsRedrawRect(damage_rect); | 142 client_->SetNeedsRedrawRect(damage_rect); |
| 143 } | 143 } |
| 144 | 144 |
| 145 void OutputSurface::ReclaimResources(const CompositorFrameAck* ack) { | 145 void OutputSurface::ReclaimResources(const ReturnedResourceArray& resources) { |
| 146 client_->ReclaimResources(ack); | 146 client_->ReclaimResources(resources); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void OutputSurface::DidLoseOutputSurface() { | 149 void OutputSurface::DidLoseOutputSurface() { |
| 150 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface"); | 150 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface"); |
| 151 client_->DidLoseOutputSurface(); | 151 client_->DidLoseOutputSurface(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void OutputSurface::SetExternalStencilTest(bool enabled) { | 154 void OutputSurface::SetExternalStencilTest(bool enabled) { |
| 155 external_stencil_test_enabled_ = enabled; | 155 external_stencil_test_enabled_ = enabled; |
| 156 } | 156 } |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 if (context_provider_.get()) { | 334 if (context_provider_.get()) { |
| 335 context_provider_->SetLostContextCallback( | 335 context_provider_->SetLostContextCallback( |
| 336 ContextProvider::LostContextCallback()); | 336 ContextProvider::LostContextCallback()); |
| 337 } | 337 } |
| 338 context_provider_ = nullptr; | 338 context_provider_ = nullptr; |
| 339 client_ = nullptr; | 339 client_ = nullptr; |
| 340 weak_ptr_factory_.InvalidateWeakPtrs(); | 340 weak_ptr_factory_.InvalidateWeakPtrs(); |
| 341 } | 341 } |
| 342 | 342 |
| 343 } // namespace cc | 343 } // namespace cc |
| OLD | NEW |