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

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

Issue 432093003: Enqueuing new frames in a Surface should cause Displays to reaggregate it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Sets the background color used for areas that aren't covered by 185 // Sets the background color used for areas that aren't covered by
186 // the |root_layer|. 186 // the |root_layer|.
187 void SetBackgroundColor(SkColor color); 187 void SetBackgroundColor(SkColor color);
188 188
189 // Returns the widget for this compositor. 189 // Returns the widget for this compositor.
190 gfx::AcceleratedWidget widget() const { return widget_; } 190 gfx::AcceleratedWidget widget() const { return widget_; }
191 191
192 // Returns the vsync manager for this compositor. 192 // Returns the vsync manager for this compositor.
193 scoped_refptr<CompositorVSyncManager> vsync_manager() const; 193 scoped_refptr<CompositorVSyncManager> vsync_manager() const;
194 194
195 // Returns the main thread task runner this compositor uses. Users of the
196 // compositor generally shouldn't use this.
197 scoped_refptr<base::SingleThreadTaskRunner> task_runner() const {
198 return task_runner_;
199 }
200
195 // Compositor does not own observers. It is the responsibility of the 201 // Compositor does not own observers. It is the responsibility of the
196 // observer to remove itself when it is done observing. 202 // observer to remove itself when it is done observing.
197 void AddObserver(CompositorObserver* observer); 203 void AddObserver(CompositorObserver* observer);
198 void RemoveObserver(CompositorObserver* observer); 204 void RemoveObserver(CompositorObserver* observer);
199 bool HasObserver(CompositorObserver* observer); 205 bool HasObserver(CompositorObserver* observer);
200 206
201 void AddAnimationObserver(CompositorAnimationObserver* observer); 207 void AddAnimationObserver(CompositorAnimationObserver* observer);
202 void RemoveAnimationObserver(CompositorAnimationObserver* observer); 208 void RemoveAnimationObserver(CompositorAnimationObserver* observer);
203 bool HasAnimationObserver(CompositorAnimationObserver* observer); 209 bool HasAnimationObserver(CompositorAnimationObserver* observer);
204 210
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 LayerAnimatorCollection layer_animator_collection_; 312 LayerAnimatorCollection layer_animator_collection_;
307 313
308 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 314 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
309 315
310 DISALLOW_COPY_AND_ASSIGN(Compositor); 316 DISALLOW_COPY_AND_ASSIGN(Compositor);
311 }; 317 };
312 318
313 } // namespace ui 319 } // namespace ui
314 320
315 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 321 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « mojo/services/surfaces/surfaces_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698