| 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/location.h" | 9 #include "base/location.h" | 
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 50   gfx::VSyncProvider* vsync_provider = software_device()->GetVSyncProvider(); | 50   gfx::VSyncProvider* vsync_provider = software_device()->GetVSyncProvider(); | 
| 51   if (vsync_provider) { | 51   if (vsync_provider) { | 
| 52     vsync_provider->GetVSyncParameters(base::Bind( | 52     vsync_provider->GetVSyncParameters(base::Bind( | 
| 53         &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu, | 53         &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu, | 
| 54         weak_factory_.GetWeakPtr())); | 54         weak_factory_.GetWeakPtr())); | 
| 55   } | 55   } | 
| 56   PostSwapBuffersComplete(); | 56   PostSwapBuffersComplete(); | 
| 57   client_->DidSwapBuffers(); | 57   client_->DidSwapBuffers(); | 
| 58 } | 58 } | 
| 59 | 59 | 
|  | 60 void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() { | 
|  | 61   // Not used for software surfaces. | 
|  | 62   NOTREACHED(); | 
|  | 63 } | 
|  | 64 | 
|  | 65 GLenum | 
|  | 66 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { | 
|  | 67   // Not used for software surfaces. | 
|  | 68   NOTREACHED(); | 
|  | 69   return 0; | 
|  | 70 } | 
|  | 71 | 
| 60 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted( | 72 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted( | 
| 61     const std::vector<ui::LatencyInfo>& latency_info, | 73     const std::vector<ui::LatencyInfo>& latency_info, | 
| 62     gfx::SwapResult result, | 74     gfx::SwapResult result, | 
| 63     const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) { | 75     const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) { | 
| 64   NOTREACHED(); | 76   NOTREACHED(); | 
| 65 } | 77 } | 
| 66 | 78 | 
| 67 #if defined(OS_MACOSX) | 79 #if defined(OS_MACOSX) | 
| 68 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( | 80 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( | 
| 69     bool suspended) { | 81     bool suspended) { | 
| 70 } | 82 } | 
| 71 #endif | 83 #endif | 
| 72 | 84 | 
| 73 }  // namespace content | 85 }  // namespace content | 
| OLD | NEW | 
|---|