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

Side by Side Diff: cc/surfaces/surface_observer.h

Issue 2908783002: WIP Hittest Component.
Patch Set: change HitTestFlags to constants so we can mix and match and convert to struct naming convention Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_SURFACES_SURFACE_OBSERVER_H_ 5 #ifndef CC_SURFACES_SURFACE_OBSERVER_H_
6 #define CC_SURFACES_SURFACE_OBSERVER_H_ 6 #define CC_SURFACES_SURFACE_OBSERVER_H_
7 7
8 namespace cc { 8 namespace cc {
9 9
10 struct BeginFrameAck; 10 struct BeginFrameAck;
(...skipping 20 matching lines...) Expand all
31 const BeginFrameAck& ack, 31 const BeginFrameAck& ack,
32 bool* changed) = 0; 32 bool* changed) = 0;
33 33
34 // Called when a surface is garbage-collected. 34 // Called when a surface is garbage-collected.
35 virtual void OnSurfaceDiscarded(const SurfaceId& surface_id) = 0; 35 virtual void OnSurfaceDiscarded(const SurfaceId& surface_id) = 0;
36 36
37 // Runs when a Surface's CompositorFrame producer has received a BeginFrame 37 // Runs when a Surface's CompositorFrame producer has received a BeginFrame
38 // and, thus, is expected to produce damage soon. 38 // and, thus, is expected to produce damage soon.
39 virtual void OnSurfaceDamageExpected(const SurfaceId& surface_id, 39 virtual void OnSurfaceDamageExpected(const SurfaceId& surface_id,
40 const BeginFrameArgs& args) = 0; 40 const BeginFrameArgs& args) = 0;
41
42 // Runs when SurfaceAggregator has added the surface to the Display Frame.
43 virtual void OnSurfaceWillDraw(const SurfaceId& surface_id) = 0;
41 }; 44 };
42 45
43 } // namespace cc 46 } // namespace cc
44 47
45 #endif // CC_SURFACES_SURFACE_OBSERVER_H_ 48 #endif // CC_SURFACES_SURFACE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698