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

Side by Side Diff: cc/test/fake_surface_observer.h

Issue 2938833002: Add SurfaceWillDraw notification (Closed)
Patch Set: correct MojoFrameSinkManager::OnSurfaceWillDraw impl 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_TEST_FAKE_SURFACE_OBSERVER_H_ 5 #ifndef CC_TEST_FAKE_SURFACE_OBSERVER_H_
6 #define CC_TEST_FAKE_SURFACE_OBSERVER_H_ 6 #define CC_TEST_FAKE_SURFACE_OBSERVER_H_
7 7
8 #include "base/containers/flat_set.h" 8 #include "base/containers/flat_set.h"
9 #include "cc/output/begin_frame_args.h" 9 #include "cc/output/begin_frame_args.h"
10 #include "cc/surfaces/surface_id.h" 10 #include "cc/surfaces/surface_id.h"
(...skipping 23 matching lines...) Expand all
34 34
35 private: 35 private:
36 // SurfaceObserver implementation: 36 // SurfaceObserver implementation:
37 bool OnSurfaceDamaged(const SurfaceId& surface_id, 37 bool OnSurfaceDamaged(const SurfaceId& surface_id,
38 const BeginFrameAck& ack) override; 38 const BeginFrameAck& ack) override;
39 void OnSurfaceCreated(const SurfaceInfo& surface_info) override; 39 void OnSurfaceCreated(const SurfaceInfo& surface_info) override;
40 void OnSurfaceDiscarded(const SurfaceId& surface_id) override {} 40 void OnSurfaceDiscarded(const SurfaceId& surface_id) override {}
41 void OnSurfaceDestroyed(const SurfaceId& surface_id) override {} 41 void OnSurfaceDestroyed(const SurfaceId& surface_id) override {}
42 void OnSurfaceDamageExpected(const SurfaceId& surface_id, 42 void OnSurfaceDamageExpected(const SurfaceId& surface_id,
43 const BeginFrameArgs& args) override {} 43 const BeginFrameArgs& args) override {}
44 void OnSurfaceWillDraw(const SurfaceId& surface_id) overide {}
44 45
45 bool damage_display_; 46 bool damage_display_;
46 BeginFrameAck last_ack_; 47 BeginFrameAck last_ack_;
47 base::flat_set<SurfaceId> damaged_surfaces_; 48 base::flat_set<SurfaceId> damaged_surfaces_;
48 SurfaceId last_created_surface_id_; 49 SurfaceId last_created_surface_id_;
49 SurfaceInfo last_surface_info_; 50 SurfaceInfo last_surface_info_;
50 }; 51 };
51 52
52 } // namespace cc 53 } // namespace cc
53 54
54 #endif // CC_TEST_FAKE_SURFACE_OBSERVER_H_ 55 #endif // CC_TEST_FAKE_SURFACE_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698