| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" | 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() { | 158 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() { |
| 159 if (reflector_) | 159 if (reflector_) |
| 160 EnsureBackbuffer(); | 160 EnsureBackbuffer(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 base::Closure | 163 base::Closure |
| 164 OffscreenBrowserCompositorOutputSurface::CreateCompositionStartedCallback() { | 164 OffscreenBrowserCompositorOutputSurface::CreateCompositionStartedCallback() { |
| 165 return base::Closure(); | 165 return base::Closure(); |
| 166 } | 166 } |
| 167 | 167 |
| 168 #if defined(OS_MACOSX) | |
| 169 | |
| 170 bool OffscreenBrowserCompositorOutputSurface:: | |
| 171 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const { | |
| 172 return true; | |
| 173 } | |
| 174 | |
| 175 #endif | |
| 176 | |
| 177 } // namespace content | 168 } // namespace content |
| OLD | NEW |