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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 2136373002: Make WindowAndroid a ViewAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@view3
Patch Set: Make WindowAndroid a ViewAndroid Created 4 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void SetNeedsAnimate() override; 123 void SetNeedsAnimate() override;
124 void SetVisible(bool visible); 124 void SetVisible(bool visible);
125 void CreateOutputSurface(); 125 void CreateOutputSurface();
126 void CreateLayerTreeHost(); 126 void CreateLayerTreeHost();
127 127
128 void OnGpuChannelEstablished(); 128 void OnGpuChannelEstablished();
129 void OnGpuChannelTimeout(); 129 void OnGpuChannelTimeout();
130 130
131 // root_layer_ is the persistent internal root layer, while subroot_layer_ 131 // root_layer_ is the persistent internal root layer, while subroot_layer_
132 // is the one attached by the compositor client. 132 // is the one attached by the compositor client.
133 scoped_refptr<cc::Layer> root_layer_;
134 scoped_refptr<cc::Layer> subroot_layer_; 133 scoped_refptr<cc::Layer> subroot_layer_;
135 134
136 // Destruction order matters here: 135 // Destruction order matters here:
137 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
138 base::ObserverList<VSyncObserver, true> observer_list_; 137 base::ObserverList<VSyncObserver, true> observer_list_;
139 std::unique_ptr<cc::LayerTreeHost> host_; 138 std::unique_ptr<cc::LayerTreeHost> host_;
140 ui::ResourceManagerImpl resource_manager_; 139 ui::ResourceManagerImpl resource_manager_;
141 140
142 std::unique_ptr<cc::Display> display_; 141 std::unique_ptr<cc::Display> display_;
143 142
(...skipping 28 matching lines...) Expand all
172 gpu::Capabilities gpu_capabilities_; 171 gpu::Capabilities gpu_capabilities_;
173 bool needs_begin_frames_; 172 bool needs_begin_frames_;
174 base::WeakPtrFactory<CompositorImpl> weak_factory_; 173 base::WeakPtrFactory<CompositorImpl> weak_factory_;
175 174
176 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 175 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
177 }; 176 };
178 177
179 } // namespace content 178 } // namespace content
180 179
181 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 180 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698