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

Side by Side Diff: content/browser/android/synchronous_compositor_host.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 6 #define CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 85 const scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
86 const int routing_id_; 86 const int routing_id_;
87 IPC::Sender* const sender_; 87 IPC::Sender* const sender_;
88 const bool async_input_; 88 const bool async_input_;
89 const bool use_in_process_zero_copy_software_draw_; 89 const bool use_in_process_zero_copy_software_draw_;
90 90
91 bool is_active_; 91 bool is_active_;
92 size_t bytes_limit_; 92 size_t bytes_limit_;
93 uint32_t output_surface_id_from_last_draw_; 93 uint32_t output_surface_id_from_last_draw_;
94 cc::ReturnedResourceArray returned_resources_; 94 cc::ReturnedResourceArray returned_resources_;
95 scoped_ptr<SharedMemoryWithSize> software_draw_shm_; 95 std::unique_ptr<SharedMemoryWithSize> software_draw_shm_;
96 96
97 // Updated by both renderer and browser. 97 // Updated by both renderer and browser.
98 gfx::ScrollOffset root_scroll_offset_; 98 gfx::ScrollOffset root_scroll_offset_;
99 bool root_scroll_offset_updated_by_browser_; 99 bool root_scroll_offset_updated_by_browser_;
100 100
101 // From renderer. 101 // From renderer.
102 uint32_t renderer_param_version_; 102 uint32_t renderer_param_version_;
103 bool need_animate_scroll_; 103 bool need_animate_scroll_;
104 uint32_t need_invalidate_count_; 104 uint32_t need_invalidate_count_;
105 bool need_begin_frame_; 105 bool need_begin_frame_;
106 uint32_t did_activate_pending_tree_count_; 106 uint32_t did_activate_pending_tree_count_;
107 107
108 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_; 108 base::WeakPtrFactory<SynchronousCompositorHost> weak_ptr_factory_;
109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost); 109 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorHost);
110 }; 110 };
111 111
112 } // namespace content 112 } // namespace content
113 113
114 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_ 114 #endif // CONTENT_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/android/synchronous_compositor_base.cc ('k') | content/browser/android/synchronous_compositor_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698