Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: content/browser/compositor/software_browser_compositor_output_surface.cc

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 vsync_provider->GetVSyncParameters(base::Bind( 53 vsync_provider->GetVSyncParameters(base::Bind(
54 &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu, 54 &BrowserCompositorOutputSurface::OnUpdateVSyncParametersFromGpu,
55 weak_factory_.GetWeakPtr())); 55 weak_factory_.GetWeakPtr()));
56 } 56 }
57 PostSwapBuffersComplete(); 57 PostSwapBuffersComplete();
58 client_->DidSwapBuffers(); 58 client_->DidSwapBuffers();
59 } 59 }
60 60
61 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted( 61 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted(
62 const std::vector<ui::LatencyInfo>& latency_info, 62 const std::vector<ui::LatencyInfo>& latency_info,
63 gfx::SwapResult result) { 63 gfx::SwapResult result,
64 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) {
64 NOTREACHED(); 65 NOTREACHED();
65 } 66 }
66 67
67 #if defined(OS_MACOSX) 68 #if defined(OS_MACOSX)
68 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( 69 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle(
69 bool suspended) { 70 bool suspended) {
70 } 71 }
71 72
72 bool SoftwareBrowserCompositorOutputSurface:: 73 bool SoftwareBrowserCompositorOutputSurface::
73 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const { 74 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const {
74 return false; 75 return false;
75 } 76 }
76 #endif 77 #endif
77 78
78 } // namespace content 79 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698