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

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

Issue 2676373004: Implement service-side surface synchronization (Closed)
Patch Set: DisplayCompositorLockManager => SurfaceDependencyTracker. Added More Comments Created 3 years, 10 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
vmpstr 2017/02/07 22:46:19 nit: 2017
Fady Samuel 2017/02/08 00:52:49 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_SURFACES_PENDING_FRAME_OBSERVER_H_
6 #define CC_SURFACES_PENDING_FRAME_OBSERVER_H_
7
8 #include "cc/surfaces/surface_id.h"
9
10 namespace cc {
11
12 using SurfaceDependencies = std::unordered_set<SurfaceId, SurfaceIdHash>;
13
14 class Surface;
15
16 class PendingFrameObserver {
17 public:
18 virtual void OnSurfaceActivated(Surface* surface) = 0;
19 virtual void OnSurfaceChanged(
vmpstr 2017/02/07 22:46:19 Is this OnSurfaceDependenciesChanged or can surfac
Fady Samuel 2017/02/08 00:52:49 Done.
20 Surface* surface,
21 const SurfaceDependencies& added_dependencies,
22 const SurfaceDependencies& removed_dependencies) = 0;
23 virtual void OnSurfaceDiscarded(Surface* surface) = 0;
24
25 protected:
26 virtual ~PendingFrameObserver() {}
27 };
28
29 } // namespace cc
30
31 #endif // CC_SURFACES_PENDING_FRAME_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698