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

Side by Side Diff: ui/compositor/compositor.h

Issue 2170053002: Set BrowserCompositorOutputSurface's vsync parameters on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Resize the display corresponding to this compositor to a particular size. 138 // Resize the display corresponding to this compositor to a particular size.
139 virtual void ResizeDisplay(ui::Compositor* compositor, 139 virtual void ResizeDisplay(ui::Compositor* compositor,
140 const gfx::Size& size) = 0; 140 const gfx::Size& size) = 0;
141 141
142 // Set the output color profile into which this compositor should render. 142 // Set the output color profile into which this compositor should render.
143 virtual void SetDisplayColorSpace(ui::Compositor* compositor, 143 virtual void SetDisplayColorSpace(ui::Compositor* compositor,
144 const gfx::ColorSpace& color_space) = 0; 144 const gfx::ColorSpace& color_space) = 0;
145 145
146 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 146 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
147 base::TimeDelta interval) = 0; 147 base::TimeDelta interval) = 0;
148 // Mac path for transporting vsync parameters to the display. Other platforms
149 // update it via the BrowserCompositorOutputSurface directly.
150 virtual void SetDisplayVSyncParameters(ui::Compositor* compositor,
151 base::TimeTicks timebase,
152 base::TimeDelta interval) = 0;
148 153
149 virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0; 154 virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0;
150 155
151 virtual void AddObserver(ContextFactoryObserver* observer) = 0; 156 virtual void AddObserver(ContextFactoryObserver* observer) = 0;
152 157
153 virtual void RemoveObserver(ContextFactoryObserver* observer) = 0; 158 virtual void RemoveObserver(ContextFactoryObserver* observer) = 0;
154 }; 159 };
155 160
156 // This class represents a lock on the compositor, that can be used to prevent 161 // This class represents a lock on the compositor, that can be used to prevent
157 // commits to the compositor tree while we're waiting for an asynchronous 162 // commits to the compositor tree while we're waiting for an asynchronous
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 401 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
397 402
398 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 403 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
399 404
400 DISALLOW_COPY_AND_ASSIGN(Compositor); 405 DISALLOW_COPY_AND_ASSIGN(Compositor);
401 }; 406 };
402 407
403 } // namespace ui 408 } // namespace ui
404 409
405 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 410 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698