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

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

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 (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 #ifndef CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 base::SingleThreadTaskRunner* task_runner); 26 base::SingleThreadTaskRunner* task_runner);
27 27
28 ~VulkanBrowserCompositorOutputSurface() override; 28 ~VulkanBrowserCompositorOutputSurface() override;
29 29
30 bool Initialize(gfx::AcceleratedWidget widget); 30 bool Initialize(gfx::AcceleratedWidget widget);
31 void Destroy(); 31 void Destroy();
32 32
33 // BrowserCompositorOutputSurface implementation. 33 // BrowserCompositorOutputSurface implementation.
34 void OnGpuSwapBuffersCompleted( 34 void OnGpuSwapBuffersCompleted(
35 const std::vector<ui::LatencyInfo>& latency_info, 35 const std::vector<ui::LatencyInfo>& latency_info,
36 gfx::SwapResult result) override; 36 gfx::SwapResult result,
37 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override;
37 38
38 protected: 39 protected:
39 // cc::OutputSurface implementation. 40 // cc::OutputSurface implementation.
40 void SwapBuffers(cc::CompositorFrame* frame) override; 41 void SwapBuffers(cc::CompositorFrame* frame) override;
41 42
42 private: 43 private:
43 std::unique_ptr<gpu::VulkanSurface> surface_; 44 std::unique_ptr<gpu::VulkanSurface> surface_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(VulkanBrowserCompositorOutputSurface); 46 DISALLOW_COPY_AND_ASSIGN(VulkanBrowserCompositorOutputSurface);
46 }; 47 };
47 48
48 } // namespace content 49 } // namespace content
49 50
50 #endif // CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 51 #endif // CONTENT_BROWSER_COMPOSITOR_VULKAN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698