OLD | NEW |
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 ASH_LASER_LASER_POINTER_VIEW_H_ | 5 #ifndef ASH_LASER_LASER_POINTER_VIEW_H_ |
6 #define ASH_LASER_LASER_POINTER_VIEW_H_ | 6 #define ASH_LASER_LASER_POINTER_VIEW_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 #include <unordered_map> | 10 #include <unordered_map> |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 void AddNewPoint(const gfx::PointF& new_point, | 53 void AddNewPoint(const gfx::PointF& new_point, |
54 const base::TimeTicks& new_time); | 54 const base::TimeTicks& new_time); |
55 void UpdateTime(); | 55 void UpdateTime(); |
56 void Stop(); | 56 void Stop(); |
57 | 57 |
58 // Overridden from cc::mojom::MojoCompositorFrameSink: | 58 // Overridden from cc::mojom::MojoCompositorFrameSink: |
59 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 59 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
61 cc::CompositorFrame frame) override; | 61 cc::CompositorFrame frame) override; |
| 62 void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override; |
62 void EvictFrame() override; | 63 void EvictFrame() override; |
63 | 64 |
64 // Overridden from cc::CompositorFrameSinkSupportClient: | 65 // Overridden from cc::CompositorFrameSinkSupportClient: |
65 void DidReceiveCompositorFrameAck() override; | 66 void DidReceiveCompositorFrameAck() override; |
66 void OnBeginFrame(const cc::BeginFrameArgs& args) override {} | 67 void OnBeginFrame(const cc::BeginFrameArgs& args) override {} |
67 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; | 68 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; |
68 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, | 69 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id, |
69 const gfx::Rect& damage_rect) override {} | 70 const gfx::Rect& damage_rect) override {} |
70 | 71 |
71 private: | 72 private: |
(...skipping 25 matching lines...) Expand all Loading... |
97 std::unordered_map<int, std::unique_ptr<LaserResource>> resources_; | 98 std::unordered_map<int, std::unique_ptr<LaserResource>> resources_; |
98 std::deque<std::unique_ptr<LaserResource>> returned_resources_; | 99 std::deque<std::unique_ptr<LaserResource>> returned_resources_; |
99 base::WeakPtrFactory<LaserPointerView> weak_ptr_factory_; | 100 base::WeakPtrFactory<LaserPointerView> weak_ptr_factory_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(LaserPointerView); | 102 DISALLOW_COPY_AND_ASSIGN(LaserPointerView); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace ash | 105 } // namespace ash |
105 | 106 |
106 #endif // ASH_LASER_LASER_POINTER_VIEW_H_ | 107 #endif // ASH_LASER_LASER_POINTER_VIEW_H_ |
OLD | NEW |