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

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

Issue 2241383002: Android: Attach hidden layer for CopyFromCompositingSurface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: rebase Created 4 years, 4 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 | « no previous file | content/browser/renderer_host/compositor_impl_android.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 (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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void DidCommit() override; 109 void DidCommit() override;
110 void DidCommitAndDrawFrame() override {} 110 void DidCommitAndDrawFrame() override {}
111 void DidCompleteSwapBuffers() override; 111 void DidCompleteSwapBuffers() override;
112 void DidCompletePageScaleAnimation() override {} 112 void DidCompletePageScaleAnimation() override {}
113 113
114 // LayerTreeHostSingleThreadClient implementation. 114 // LayerTreeHostSingleThreadClient implementation.
115 void DidPostSwapBuffers() override; 115 void DidPostSwapBuffers() override;
116 void DidAbortSwapBuffers() override; 116 void DidAbortSwapBuffers() override;
117 117
118 // WindowAndroidCompositor implementation. 118 // WindowAndroidCompositor implementation.
119 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
119 void RequestCopyOfOutputOnRootLayer( 120 void RequestCopyOfOutputOnRootLayer(
120 std::unique_ptr<cc::CopyOutputRequest> request) override; 121 std::unique_ptr<cc::CopyOutputRequest> request) override;
121 void OnVSync(base::TimeTicks frame_time, 122 void OnVSync(base::TimeTicks frame_time,
122 base::TimeDelta vsync_period) override; 123 base::TimeDelta vsync_period) override;
123 void SetNeedsAnimate() override; 124 void SetNeedsAnimate() override;
124 void SetVisible(bool visible); 125 void SetVisible(bool visible);
125 void CreateOutputSurface(); 126 void CreateOutputSurface();
126 void CreateLayerTreeHost(); 127 void CreateLayerTreeHost();
127 128
128 void OnGpuChannelEstablished(); 129 void OnGpuChannelEstablished();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 gpu::Capabilities gpu_capabilities_; 173 gpu::Capabilities gpu_capabilities_;
173 bool needs_begin_frames_; 174 bool needs_begin_frames_;
174 base::WeakPtrFactory<CompositorImpl> weak_factory_; 175 base::WeakPtrFactory<CompositorImpl> weak_factory_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 177 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
177 }; 178 };
178 179
179 } // namespace content 180 } // namespace content
180 181
181 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 182 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698