| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 std::unique_ptr<views::Widget> widget_; | 84 std::unique_ptr<views::Widget> widget_; |
| 85 float scale_factor_ = 1.0f; | 85 float scale_factor_ = 1.0f; |
| 86 const base::TimeDelta presentation_delay_; | 86 const base::TimeDelta presentation_delay_; |
| 87 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer_; | 87 std::unique_ptr<gfx::GpuMemoryBuffer> gpu_memory_buffer_; |
| 88 gfx::Rect buffer_damage_rect_; | 88 gfx::Rect buffer_damage_rect_; |
| 89 bool pending_update_buffer_ = false; | 89 bool pending_update_buffer_ = false; |
| 90 gfx::Rect surface_damage_rect_; | 90 gfx::Rect surface_damage_rect_; |
| 91 bool needs_update_surface_ = false; | 91 bool needs_update_surface_ = false; |
| 92 bool pending_draw_surface_ = false; | 92 bool pending_draw_surface_ = false; |
| 93 const cc::FrameSinkId frame_sink_id_; | 93 const cc::FrameSinkId frame_sink_id_; |
| 94 cc::CompositorFrameSinkSupport frame_sink_support_; | 94 std::unique_ptr<cc::CompositorFrameSinkSupport> frame_sink_support_; |
| 95 cc::LocalSurfaceId local_surface_id_; | 95 cc::LocalSurfaceId local_surface_id_; |
| 96 cc::LocalSurfaceIdAllocator id_allocator_; | 96 cc::LocalSurfaceIdAllocator id_allocator_; |
| 97 int next_resource_id_ = 1; | 97 int next_resource_id_ = 1; |
| 98 std::unordered_map<int, std::unique_ptr<LaserResource>> resources_; | 98 std::unordered_map<int, std::unique_ptr<LaserResource>> resources_; |
| 99 std::deque<std::unique_ptr<LaserResource>> returned_resources_; | 99 std::deque<std::unique_ptr<LaserResource>> returned_resources_; |
| 100 base::WeakPtrFactory<LaserPointerView> weak_ptr_factory_; | 100 base::WeakPtrFactory<LaserPointerView> weak_ptr_factory_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(LaserPointerView); | 102 DISALLOW_COPY_AND_ASSIGN(LaserPointerView); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace ash | 105 } // namespace ash |
| 106 | 106 |
| 107 #endif // ASH_LASER_LASER_POINTER_VIEW_H_ | 107 #endif // ASH_LASER_LASER_POINTER_VIEW_H_ |
| OLD | NEW |