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

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

Issue 2029323004: Get rid of virtual Display::CreateScheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onscreendisplayclient
Patch Set: displaytest: unusedvar Created 4 years, 6 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_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // Adapts a WebGraphicsContext3DCommandBufferImpl into a 31 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
32 // cc::OutputSurface that also handles vsync parameter updates 32 // cc::OutputSurface that also handles vsync parameter updates
33 // arriving from the GPU process. 33 // arriving from the GPU process.
34 class GpuBrowserCompositorOutputSurface 34 class GpuBrowserCompositorOutputSurface
35 : public BrowserCompositorOutputSurface { 35 : public BrowserCompositorOutputSurface {
36 public: 36 public:
37 GpuBrowserCompositorOutputSurface( 37 GpuBrowserCompositorOutputSurface(
38 scoped_refptr<ContextProviderCommandBuffer> context, 38 scoped_refptr<ContextProviderCommandBuffer> context,
39 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, 39 scoped_refptr<ui::CompositorVSyncManager> vsync_manager,
40 base::SingleThreadTaskRunner* task_runner, 40 cc::SyntheticBeginFrameSource* begin_frame_source,
41 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 41 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
42 overlay_candidate_validator); 42 overlay_candidate_validator);
43 43
44 ~GpuBrowserCompositorOutputSurface() override; 44 ~GpuBrowserCompositorOutputSurface() override;
45 45
46 protected: 46 protected:
47 // BrowserCompositorOutputSurface: 47 // BrowserCompositorOutputSurface:
48 void OnReflectorChanged() override; 48 void OnReflectorChanged() override;
49 void OnGpuSwapBuffersCompleted( 49 void OnGpuSwapBuffersCompleted(
50 const std::vector<ui::LatencyInfo>& latency_info, 50 const std::vector<ui::LatencyInfo>& latency_info,
(...skipping 18 matching lines...) Expand all
69 update_vsync_parameters_callback_; 69 update_vsync_parameters_callback_;
70 70
71 std::unique_ptr<ReflectorTexture> reflector_texture_; 71 std::unique_ptr<ReflectorTexture> reflector_texture_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 73 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 78 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698