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

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

Issue 1903523004: The display can now create a Vulkan Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@vulkan_context_surface
Patch Set: Export VulkanRenderer Created 4 years, 8 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
« no previous file with comments | « cc/surfaces/display.cc ('k') | content/browser/compositor/browser_compositor_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Constructor used by the software implementation. 76 // Constructor used by the software implementation.
77 BrowserCompositorOutputSurface( 77 BrowserCompositorOutputSurface(
78 std::unique_ptr<cc::SoftwareOutputDevice> software_device, 78 std::unique_ptr<cc::SoftwareOutputDevice> software_device,
79 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 79 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
80 base::SingleThreadTaskRunner* task_runner); 80 base::SingleThreadTaskRunner* task_runner);
81 81
82 // Constructor used by the Vulkan implementation. 82 // Constructor used by the Vulkan implementation.
83 BrowserCompositorOutputSurface( 83 BrowserCompositorOutputSurface(
84 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider, 84 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider,
85 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager); 85 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
86 base::SingleThreadTaskRunner* task_runner);
86 87
87 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; 88 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_;
88 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_; 89 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_;
89 ReflectorImpl* reflector_; 90 ReflectorImpl* reflector_;
90 91
91 // True when BeginFrame scheduling is enabled. 92 // True when BeginFrame scheduling is enabled.
92 bool use_begin_frame_scheduling_; 93 bool use_begin_frame_scheduling_;
93 94
94 private: 95 private:
95 void Initialize(); 96 void Initialize();
96 97
97 void UpdateVSyncParametersInternal(base::TimeTicks timebase, 98 void UpdateVSyncParametersInternal(base::TimeTicks timebase,
98 base::TimeDelta interval); 99 base::TimeDelta interval);
99 100
100 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 101 std::unique_ptr<BrowserCompositorOverlayCandidateValidator>
101 overlay_candidate_validator_; 102 overlay_candidate_validator_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 104 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
104 }; 105 };
105 106
106 } // namespace content 107 } // namespace content
107 108
108 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 109 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/surfaces/display.cc ('k') | content/browser/compositor/browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698