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

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

Issue 1892303003: Added the Vulkan Context Provider implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export VulkanContextProvider 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
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 base::SingleThreadTaskRunner* task_runner, 72 base::SingleThreadTaskRunner* task_runner,
73 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 73 std::unique_ptr<BrowserCompositorOverlayCandidateValidator>
74 overlay_candidate_validator); 74 overlay_candidate_validator);
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.
83 BrowserCompositorOutputSurface(
84 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider,
85 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager);
86
82 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; 87 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_;
83 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_; 88 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_;
84 ReflectorImpl* reflector_; 89 ReflectorImpl* reflector_;
85 90
86 // True when BeginFrame scheduling is enabled. 91 // True when BeginFrame scheduling is enabled.
87 bool use_begin_frame_scheduling_; 92 bool use_begin_frame_scheduling_;
88 93
89 private: 94 private:
90 void Initialize(); 95 void Initialize();
91 96
92 void UpdateVSyncParametersInternal(base::TimeTicks timebase, 97 void UpdateVSyncParametersInternal(base::TimeTicks timebase,
93 base::TimeDelta interval); 98 base::TimeDelta interval);
94 99
95 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 100 std::unique_ptr<BrowserCompositorOverlayCandidateValidator>
96 overlay_candidate_validator_; 101 overlay_candidate_validator_;
97 102
98 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 103 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
99 }; 104 };
100 105
101 } // namespace content 106 } // namespace content
102 107
103 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 108 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.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