| 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 "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 if (auto* context_support = context_provider->ContextSupport()) { | 230 if (auto* context_support = context_provider->ContextSupport()) { |
| 231 context_support->SetAggressivelyFreeResources( | 231 context_support->SetAggressivelyFreeResources( |
| 232 aggressively_free_resources); | 232 aggressively_free_resources); |
| 233 } | 233 } |
| 234 | 234 |
| 235 // Allow context to bind to other threads. | 235 // Allow context to bind to other threads. |
| 236 context_provider->DetachFromThread(); | 236 context_provider->DetachFromThread(); |
| 237 } | 237 } |
| 238 } | 238 } |
| 239 | 239 |
| 240 bool OutputSurface::SurfaceIsSuspendForRecycle() const { |
| 241 return false; |
| 242 } |
| 243 |
| 240 } // namespace cc | 244 } // namespace cc |
| OLD | NEW |