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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Re-add feature flag Created 3 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 cc::UIResourceId CreateUIResource(cc::UIResourceClient* client) override; 72 cc::UIResourceId CreateUIResource(cc::UIResourceClient* client) override;
73 void DeleteUIResource(cc::UIResourceId resource_id) override; 73 void DeleteUIResource(cc::UIResourceId resource_id) override;
74 bool SupportsETC1NonPowerOfTwo() const override; 74 bool SupportsETC1NonPowerOfTwo() const override;
75 75
76 private: 76 private:
77 // Compositor implementation. 77 // Compositor implementation.
78 void SetRootLayer(scoped_refptr<cc::Layer> root) override; 78 void SetRootLayer(scoped_refptr<cc::Layer> root) override;
79 void SetSurface(jobject surface) override; 79 void SetSurface(jobject surface) override;
80 void SetWindowBounds(const gfx::Size& size) override; 80 void SetWindowBounds(const gfx::Size& size) override;
81 void SetHasTransparentBackground(bool flag) override; 81 void SetHasTransparentBackground(bool flag) override;
82 void SetBackgroundColor(int color) override;
82 void SetNeedsComposite() override; 83 void SetNeedsComposite() override;
83 ui::UIResourceProvider& GetUIResourceProvider() override; 84 ui::UIResourceProvider& GetUIResourceProvider() override;
84 ui::ResourceManager& GetResourceManager() override; 85 ui::ResourceManager& GetResourceManager() override;
85 86
86 // LayerTreeHostClient implementation. 87 // LayerTreeHostClient implementation.
87 void WillBeginMainFrame() override {} 88 void WillBeginMainFrame() override {}
88 void DidBeginMainFrame() override {} 89 void DidBeginMainFrame() override {}
89 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} 90 void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
90 void BeginMainFrameNotExpectedSoon() override {} 91 void BeginMainFrameNotExpectedSoon() override {}
91 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override {} 92 void BeginMainFrameNotExpectedUntil(base::TimeTicks time) override {}
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void OnGpuChannelEstablished( 132 void OnGpuChannelEstablished(
132 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host); 133 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host);
133 void OnGpuChannelTimeout(); 134 void OnGpuChannelTimeout();
134 void InitializeDisplay( 135 void InitializeDisplay(
135 std::unique_ptr<cc::OutputSurface> display_output_surface, 136 std::unique_ptr<cc::OutputSurface> display_output_surface,
136 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider, 137 scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider,
137 scoped_refptr<cc::ContextProvider> context_provider); 138 scoped_refptr<cc::ContextProvider> context_provider);
138 void DidSwapBuffers(); 139 void DidSwapBuffers();
139 140
140 bool HavePendingReadbacks(); 141 bool HavePendingReadbacks();
141 void SetBackgroundColor(int color);
142 142
143 cc::FrameSinkId frame_sink_id_; 143 cc::FrameSinkId frame_sink_id_;
144 144
145 // root_layer_ is the persistent internal root layer, while subroot_layer_ 145 // root_layer_ is the persistent internal root layer, while subroot_layer_
146 // is the one attached by the compositor client. 146 // is the one attached by the compositor client.
147 scoped_refptr<cc::Layer> subroot_layer_; 147 scoped_refptr<cc::Layer> subroot_layer_;
148 148
149 // Subtree for hidden layers with CopyOutputRequests on them. 149 // Subtree for hidden layers with CopyOutputRequests on them.
150 scoped_refptr<cc::Layer> readback_layer_tree_; 150 scoped_refptr<cc::Layer> readback_layer_tree_;
151 151
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash> 188 std::unordered_set<cc::FrameSinkId, cc::FrameSinkIdHash>
189 pending_child_frame_sink_ids_; 189 pending_child_frame_sink_ids_;
190 base::WeakPtrFactory<CompositorImpl> weak_factory_; 190 base::WeakPtrFactory<CompositorImpl> weak_factory_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 192 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 197 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698