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

Side by Side Diff: content/browser/compositor/vulkan_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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/vulkan_browser_compositor_output_surface.h" 5 #include "content/browser/compositor/vulkan_browser_compositor_output_surface.h"
6 6
7 #include "cc/output/output_surface_client.h" 7 #include "cc/output/output_surface_client.h"
8 #include "content/browser/renderer_host/render_widget_host_impl.h" 8 #include "content/browser/renderer_host/render_widget_host_impl.h"
9 #include "gpu/vulkan/vulkan_surface.h" 9 #include "gpu/vulkan/vulkan_surface.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 gfx::SwapResult result, 48 gfx::SwapResult result,
49 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) { 49 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) {
50 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); 50 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info);
51 OnSwapBuffersComplete(); 51 OnSwapBuffersComplete();
52 } 52 }
53 53
54 void VulkanBrowserCompositorOutputSurface::SwapBuffers( 54 void VulkanBrowserCompositorOutputSurface::SwapBuffers(
55 cc::CompositorFrame* frame) { 55 cc::CompositorFrame* frame) {
56 surface_->SwapBuffers(); 56 surface_->SwapBuffers();
57 PostSwapBuffersComplete(); 57 PostSwapBuffersComplete();
58 client_->DidSwapBuffers();
59 } 58 }
60 59
61 } // namespace content 60 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698