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

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

Issue 2143263002: cc: Remove OutputSurfaceClient::DidSwapBuffers(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removedidswap: fix-webview-swap Created 4 years, 5 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 FROM_HERE, base::Bind(&RenderWidgetHostImpl::CompositorFrameDrawn, 47 FROM_HERE, base::Bind(&RenderWidgetHostImpl::CompositorFrameDrawn,
48 frame.metadata.latency_info)); 48 frame.metadata.latency_info));
49 49
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();
58 } 57 }
59 58
60 void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() { 59 void SoftwareBrowserCompositorOutputSurface::BindFramebuffer() {
61 // Not used for software surfaces. 60 // Not used for software surfaces.
62 NOTREACHED(); 61 NOTREACHED();
63 } 62 }
64 63
65 GLenum 64 GLenum
66 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() { 65 SoftwareBrowserCompositorOutputSurface::GetFramebufferCopyTextureFormat() {
67 // Not used for software surfaces. 66 // Not used for software surfaces.
68 NOTREACHED(); 67 NOTREACHED();
69 return 0; 68 return 0;
70 } 69 }
71 70
72 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted( 71 void SoftwareBrowserCompositorOutputSurface::OnGpuSwapBuffersCompleted(
73 const std::vector<ui::LatencyInfo>& latency_info, 72 const std::vector<ui::LatencyInfo>& latency_info,
74 gfx::SwapResult result, 73 gfx::SwapResult result,
75 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) { 74 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) {
76 NOTREACHED(); 75 NOTREACHED();
77 } 76 }
78 77
79 #if defined(OS_MACOSX) 78 #if defined(OS_MACOSX)
80 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle( 79 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle(
81 bool suspended) { 80 bool suspended) {
82 } 81 }
83 #endif 82 #endif
84 83
85 } // namespace content 84 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698