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

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

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Creates a Surface ID allocator with a new namespace. 115 // Creates a Surface ID allocator with a new namespace.
116 virtual std::unique_ptr<cc::SurfaceIdAllocator> 116 virtual std::unique_ptr<cc::SurfaceIdAllocator>
117 CreateSurfaceIdAllocator() = 0; 117 CreateSurfaceIdAllocator() = 0;
118 118
119 // Resize the display corresponding to this compositor to a particular size. 119 // Resize the display corresponding to this compositor to a particular size.
120 virtual void ResizeDisplay(ui::Compositor* compositor, 120 virtual void ResizeDisplay(ui::Compositor* compositor,
121 const gfx::Size& size) = 0; 121 const gfx::Size& size) = 0;
122 122
123 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 123 virtual void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
124 base::TimeDelta interval) = 0; 124 base::TimeDelta interval) = 0;
125
126 virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0;
125 }; 127 };
126 128
127 // This class represents a lock on the compositor, that can be used to prevent 129 // This class represents a lock on the compositor, that can be used to prevent
128 // commits to the compositor tree while we're waiting for an asynchronous 130 // commits to the compositor tree while we're waiting for an asynchronous
129 // event. The typical use case is when waiting for a renderer to produce a frame 131 // event. The typical use case is when waiting for a renderer to produce a frame
130 // at the right size. The caller keeps a reference on this object, and drops the 132 // at the right size. The caller keeps a reference on this object, and drops the
131 // reference once it desires to release the lock. 133 // reference once it desires to release the lock.
132 // By default, the lock will be cancelled after a short timeout to ensure 134 // By default, the lock will be cancelled after a short timeout to ensure
133 // responsiveness of the UI, so the compositor tree should be kept in a 135 // responsiveness of the UI, so the compositor tree should be kept in a
134 // "reasonable" state while the lock is held. If the compositor sets 136 // "reasonable" state while the lock is held. If the compositor sets
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 scoped_refptr<cc::AnimationTimeline> animation_timeline_; 369 scoped_refptr<cc::AnimationTimeline> animation_timeline_;
368 370
369 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 371 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
370 372
371 DISALLOW_COPY_AND_ASSIGN(Compositor); 373 DISALLOW_COPY_AND_ASSIGN(Compositor);
372 }; 374 };
373 375
374 } // namespace ui 376 } // namespace ui
375 377
376 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 378 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698