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

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

Issue 2036563002: Delete OnscreenDisplayClient and TopLevelDisplayClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: onscreendisplayclient: webview-scoped-allow-gl-for-hardwarerenderer-constructor Created 4 years, 6 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 13 matching lines...) Expand all
24 #include "gpu/ipc/common/surface_handle.h" 24 #include "gpu/ipc/common/surface_handle.h"
25 #include "third_party/khronos/GLES2/gl2.h" 25 #include "third_party/khronos/GLES2/gl2.h"
26 #include "ui/android/resources/resource_manager_impl.h" 26 #include "ui/android/resources/resource_manager_impl.h"
27 #include "ui/android/resources/ui_resource_provider.h" 27 #include "ui/android/resources/ui_resource_provider.h"
28 #include "ui/android/window_android_compositor.h" 28 #include "ui/android/window_android_compositor.h"
29 29
30 class SkBitmap; 30 class SkBitmap;
31 struct ANativeWindow; 31 struct ANativeWindow;
32 32
33 namespace cc { 33 namespace cc {
34 class Display;
34 class Layer; 35 class Layer;
35 class LayerTreeHost; 36 class LayerTreeHost;
36 class OnscreenDisplayClient;
37 class SurfaceIdAllocator; 37 class SurfaceIdAllocator;
38 class SurfaceManager; 38 class SurfaceManager;
39 class VulkanInProcessContextProvider; 39 class VulkanInProcessContextProvider;
40 } 40 }
41 41
42 namespace content { 42 namespace content {
43 class CompositorClient; 43 class CompositorClient;
44 44
45 // ----------------------------------------------------------------------------- 45 // -----------------------------------------------------------------------------
46 // Browser-side compositor that manages a tree of content and UI layers. 46 // Browser-side compositor that manages a tree of content and UI layers.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // is the one attached by the compositor client. 135 // is the one attached by the compositor client.
136 scoped_refptr<cc::Layer> root_layer_; 136 scoped_refptr<cc::Layer> root_layer_;
137 scoped_refptr<cc::Layer> subroot_layer_; 137 scoped_refptr<cc::Layer> subroot_layer_;
138 138
139 // Destruction order matters here: 139 // Destruction order matters here:
140 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 140 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
141 base::ObserverList<VSyncObserver, true> observer_list_; 141 base::ObserverList<VSyncObserver, true> observer_list_;
142 std::unique_ptr<cc::LayerTreeHost> host_; 142 std::unique_ptr<cc::LayerTreeHost> host_;
143 ui::ResourceManagerImpl resource_manager_; 143 ui::ResourceManagerImpl resource_manager_;
144 144
145 std::unique_ptr<cc::OnscreenDisplayClient> display_client_; 145 std::unique_ptr<cc::Display> display_;
146 146
147 gfx::Size size_; 147 gfx::Size size_;
148 bool has_transparent_background_; 148 bool has_transparent_background_;
149 float device_scale_factor_; 149 float device_scale_factor_;
150 150
151 ANativeWindow* window_; 151 ANativeWindow* window_;
152 gpu::SurfaceHandle surface_handle_; 152 gpu::SurfaceHandle surface_handle_;
153 153
154 CompositorClient* client_; 154 CompositorClient* client_;
155 155
(...skipping 19 matching lines...) Expand all
175 gpu::Capabilities gpu_capabilities_; 175 gpu::Capabilities gpu_capabilities_;
176 bool needs_begin_frames_; 176 bool needs_begin_frames_;
177 base::WeakPtrFactory<CompositorImpl> weak_factory_; 177 base::WeakPtrFactory<CompositorImpl> weak_factory_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 179 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
180 }; 180 };
181 181
182 } // namespace content 182 } // namespace content
183 183
184 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 184 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.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