| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 weak_factory_.GetWeakPtr())); | 78 weak_factory_.GetWeakPtr())); |
| 79 } | 79 } |
| 80 | 80 |
| 81 task_runner_->PostTask( | 81 task_runner_->PostTask( |
| 82 FROM_HERE, | 82 FROM_HERE, |
| 83 base::Bind(&SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback, | 83 base::Bind(&SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback, |
| 84 weak_factory_.GetWeakPtr())); | 84 weak_factory_.GetWeakPtr())); |
| 85 } | 85 } |
| 86 | 86 |
| 87 void SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback() { | 87 void SoftwareBrowserCompositorOutputSurface::SwapBuffersCallback() { |
| 88 client_->DidSwapBuffersComplete(); | 88 client_->DidReceiveSwapBuffersAck(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 bool SoftwareBrowserCompositorOutputSurface::IsDisplayedAsOverlayPlane() const { | 91 bool SoftwareBrowserCompositorOutputSurface::IsDisplayedAsOverlayPlane() const { |
| 92 return false; | 92 return false; |
| 93 } | 93 } |
| 94 | 94 |
| 95 unsigned SoftwareBrowserCompositorOutputSurface::GetOverlayTextureId() const { | 95 unsigned SoftwareBrowserCompositorOutputSurface::GetOverlayTextureId() const { |
| 96 return 0; | 96 return 0; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool SoftwareBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() | 99 bool SoftwareBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() |
| 100 const { | 100 const { |
| 101 return false; | 101 return false; |
| 102 } | 102 } |
| 103 | 103 |
| 104 GLenum | 104 GLenum |
| 105 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { | 105 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { |
| 106 // Not used for software surfaces. | 106 // Not used for software surfaces. |
| 107 NOTREACHED(); | 107 NOTREACHED(); |
| 108 return 0; | 108 return 0; |
| 109 } | 109 } |
| 110 | 110 |
| 111 #if defined(OS_MACOSX) | 111 #if defined(OS_MACOSX) |
| 112 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( | 112 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( |
| 113 bool suspended) { | 113 bool suspended) { |
| 114 } | 114 } |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 } // namespace content | 117 } // namespace content |
| OLD | NEW |