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

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

Issue 2243663002: Android: Attach hidden layer for CopyFromCompositingSurface() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void DidCommit() override; 105 void DidCommit() override;
106 void DidCommitAndDrawFrame() override {} 106 void DidCommitAndDrawFrame() override {}
107 void DidCompleteSwapBuffers() override; 107 void DidCompleteSwapBuffers() override;
108 void DidCompletePageScaleAnimation() override {} 108 void DidCompletePageScaleAnimation() override {}
109 109
110 // LayerTreeHostSingleThreadClient implementation. 110 // LayerTreeHostSingleThreadClient implementation.
111 void DidPostSwapBuffers() override; 111 void DidPostSwapBuffers() override;
112 void DidAbortSwapBuffers() override; 112 void DidAbortSwapBuffers() override;
113 113
114 // WindowAndroidCompositor implementation. 114 // WindowAndroidCompositor implementation.
115 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
115 void RequestCopyOfOutputOnRootLayer( 116 void RequestCopyOfOutputOnRootLayer(
116 std::unique_ptr<cc::CopyOutputRequest> request) override; 117 std::unique_ptr<cc::CopyOutputRequest> request) override;
117 void OnVSync(base::TimeTicks frame_time, 118 void OnVSync(base::TimeTicks frame_time,
118 base::TimeDelta vsync_period) override; 119 base::TimeDelta vsync_period) override;
119 void SetNeedsAnimate() override; 120 void SetNeedsAnimate() override;
120 void SetVisible(bool visible); 121 void SetVisible(bool visible);
121 void CreateLayerTreeHost(); 122 void CreateLayerTreeHost();
122 123
123 void HandlePendingOutputSurfaceRequest(); 124 void HandlePendingOutputSurfaceRequest();
124 125
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 gpu::Capabilities gpu_capabilities_; 174 gpu::Capabilities gpu_capabilities_;
174 bool needs_begin_frames_; 175 bool needs_begin_frames_;
175 base::WeakPtrFactory<CompositorImpl> weak_factory_; 176 base::WeakPtrFactory<CompositorImpl> weak_factory_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 178 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
178 }; 179 };
179 180
180 } // namespace content 181 } // namespace content
181 182
182 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 183 #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