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

Side by Side Diff: ash/laser/laser_pointer_view.h

Issue 2807653003: Move Work From CompositorFrameSinkSupport() To Init() (Closed)
Patch Set: Add CompositorFrameSinkSupport::Create Created 3 years, 8 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
« no previous file with comments | « android_webview/browser/surfaces_instance.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/surfaces_instance.cc ('k') | ash/laser/laser_pointer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698