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

Side by Side Diff: content/browser/compositor/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: androids 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_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool BindToClient(cc::OutputSurfaceClient* client) override; 44 bool BindToClient(cc::OutputSurfaceClient* client) override;
45 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 45 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
46 46
47 // ui::CompositorVSyncManager::Observer implementation. 47 // ui::CompositorVSyncManager::Observer implementation.
48 void OnUpdateVSyncParameters(base::TimeTicks timebase, 48 void OnUpdateVSyncParameters(base::TimeTicks timebase,
49 base::TimeDelta interval) override; 49 base::TimeDelta interval) override;
50 50
51 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, 51 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase,
52 base::TimeDelta interval); 52 base::TimeDelta interval);
53 53
54 // Returns the BeginFrameSource to be used for this output surface.
55 cc::BeginFrameSource* GetBeginFrameSource();
56
54 void SetReflector(ReflectorImpl* reflector); 57 void SetReflector(ReflectorImpl* reflector);
55 58
56 // Called when |reflector_| was updated. 59 // Called when |reflector_| was updated.
57 virtual void OnReflectorChanged(); 60 virtual void OnReflectorChanged();
58 61
59 // Returns a callback that will be called when all mirroring 62 // Returns a callback that will be called when all mirroring
60 // compositors have started composition. 63 // compositors have started composition.
61 virtual base::Closure CreateCompositionStartedCallback(); 64 virtual base::Closure CreateCompositionStartedCallback();
62 65
63 // Called when a swap completion is sent from the GPU process. 66 // Called when a swap completion is sent from the GPU process.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 117
115 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 118 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
116 overlay_candidate_validator_; 119 overlay_candidate_validator_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 121 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
119 }; 122 };
120 123
121 } // namespace content 124 } // namespace content
122 125
123 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 126 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698