OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/software_browser_compositor_output_surface.
h" | 5 #include "content/browser/compositor/software_browser_compositor_output_surface.
h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 PostSwapBuffersComplete(); | 53 PostSwapBuffersComplete(); |
54 client_->DidSwapBuffers(); | 54 client_->DidSwapBuffers(); |
55 } | 55 } |
56 | 56 |
57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
58 void SoftwareBrowserCompositorOutputSurface::OnSurfaceDisplayed() { | 58 void SoftwareBrowserCompositorOutputSurface::OnSurfaceDisplayed() { |
59 // See GpuBrowserCompositorOutputSurface for when and how this is used. | 59 // See GpuBrowserCompositorOutputSurface for when and how this is used. |
60 NOTREACHED() << "Not expected for software surfaces."; | 60 NOTREACHED() << "Not expected for software surfaces."; |
61 } | 61 } |
62 | 62 |
63 void SoftwareBrowserCompositorOutputSurface::OnSurfaceRecycled() { | 63 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( |
| 64 bool suspended) { |
64 } | 65 } |
65 | 66 |
66 bool SoftwareBrowserCompositorOutputSurface::ShouldNotShowFramesAfterRecycle() | 67 bool SoftwareBrowserCompositorOutputSurface:: |
67 const { | 68 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const { |
68 return false; | 69 return false; |
69 } | 70 } |
70 #endif | 71 #endif |
71 | 72 |
72 } // namespace content | 73 } // namespace content |
OLD | NEW |