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

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

Issue 2557913002: Remove begin_frame_source argument from VulkanBrowserCompositorOutputSurface ctor (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « content/browser/compositor/vulkan_browser_compositor_output_surface.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 namespace content { 11 namespace content {
12 12
13 VulkanBrowserCompositorOutputSurface::VulkanBrowserCompositorOutputSurface( 13 VulkanBrowserCompositorOutputSurface::VulkanBrowserCompositorOutputSurface(
14 scoped_refptr<cc::VulkanContextProvider> context, 14 scoped_refptr<cc::VulkanContextProvider> context,
15 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, 15 const UpdateVSyncParametersCallback& update_vsync_parameters_callback)
16 cc::SyntheticBeginFrameSource* begin_frame_source)
17 : BrowserCompositorOutputSurface(std::move(context), 16 : BrowserCompositorOutputSurface(std::move(context),
18 update_vsync_parameters_callback, 17 update_vsync_parameters_callback),
19 begin_frame_source),
20 weak_ptr_factory_(this) {} 18 weak_ptr_factory_(this) {}
21 19
22 VulkanBrowserCompositorOutputSurface::~VulkanBrowserCompositorOutputSurface() { 20 VulkanBrowserCompositorOutputSurface::~VulkanBrowserCompositorOutputSurface() {
23 Destroy(); 21 Destroy();
24 } 22 }
25 23
26 bool VulkanBrowserCompositorOutputSurface::Initialize( 24 bool VulkanBrowserCompositorOutputSurface::Initialize(
27 gfx::AcceleratedWidget widget) { 25 gfx::AcceleratedWidget widget) {
28 DCHECK(!surface_); 26 DCHECK(!surface_);
29 std::unique_ptr<gpu::VulkanSurface> surface( 27 std::unique_ptr<gpu::VulkanSurface> surface(
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 base::Bind(&VulkanBrowserCompositorOutputSurface::SwapBuffersAck, 99 base::Bind(&VulkanBrowserCompositorOutputSurface::SwapBuffersAck,
102 weak_ptr_factory_.GetWeakPtr())); 100 weak_ptr_factory_.GetWeakPtr()));
103 } 101 }
104 102
105 void VulkanBrowserCompositorOutputSurface::SwapBuffersAck() { 103 void VulkanBrowserCompositorOutputSurface::SwapBuffersAck() {
106 DCHECK(client_); 104 DCHECK(client_);
107 client_->DidReceiveSwapBuffersAck(); 105 client_->DidReceiveSwapBuffersAck();
108 } 106 }
109 107
110 } // namespace content 108 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/vulkan_browser_compositor_output_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698