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

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

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy 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
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/test/draw_waiter_for_test.h » ('j') | 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_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/compositor/compositor_export.h" 9 #include "ui/compositor/compositor_export.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 class Compositor; 13 class Compositor;
14 14
15 // A compositor observer is notified when compositing completes. 15 // A compositor observer is notified when compositing completes.
16 class COMPOSITOR_EXPORT CompositorObserver { 16 class COMPOSITOR_EXPORT CompositorObserver {
17 public: 17 public:
18 // Called when the accelerated widget is set.
19 virtual void OnCompositingInitialized(Compositor* compositor) = 0;
20
18 // A commit proxies information from the main thread to the compositor 21 // A commit proxies information from the main thread to the compositor
19 // thread. It typically happens when some state changes that will require a 22 // thread. It typically happens when some state changes that will require a
20 // composite. In the multi-threaded case, many commits may happen between 23 // composite. In the multi-threaded case, many commits may happen between
21 // two successive composites. In the single-threaded, a single commit 24 // two successive composites. In the single-threaded, a single commit
22 // between two composites (just before the composite as part of the 25 // between two composites (just before the composite as part of the
23 // composite cycle). If the compositor is locked, it will not send this 26 // composite cycle). If the compositor is locked, it will not send this
24 // this signal. 27 // this signal.
25 virtual void OnCompositingDidCommit(Compositor* compositor) = 0; 28 virtual void OnCompositingDidCommit(Compositor* compositor) = 0;
26 29
27 // Called when compositing started: it has taken all the layer changes into 30 // Called when compositing started: it has taken all the layer changes into
(...skipping 11 matching lines...) Expand all
39 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; 42 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0;
40 43
41 // Called at the top of the compositor's destructor, to give observers a 44 // Called at the top of the compositor's destructor, to give observers a
42 // chance to remove themselves. 45 // chance to remove themselves.
43 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0; 46 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0;
44 }; 47 };
45 48
46 } // namespace ui 49 } // namespace ui
47 50
48 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ 51 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/test/draw_waiter_for_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698