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

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

Issue 1732323002: Remove layer for readback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a bug Created 4 years, 10 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 "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void RecordFrameTimingEvents( 106 void RecordFrameTimingEvents(
107 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, 107 scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events,
108 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) 108 scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events)
109 override {} 109 override {}
110 110
111 // LayerTreeHostSingleThreadClient implementation. 111 // LayerTreeHostSingleThreadClient implementation.
112 void DidPostSwapBuffers() override; 112 void DidPostSwapBuffers() override;
113 void DidAbortSwapBuffers() override; 113 void DidAbortSwapBuffers() override;
114 114
115 // WindowAndroidCompositor implementation. 115 // WindowAndroidCompositor implementation.
116 void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) override;
117 void RequestCopyOfOutputOnRootLayer( 116 void RequestCopyOfOutputOnRootLayer(
118 scoped_ptr<cc::CopyOutputRequest> request) override; 117 scoped_ptr<cc::CopyOutputRequest> request) override;
119 void OnVSync(base::TimeTicks frame_time, 118 void OnVSync(base::TimeTicks frame_time,
120 base::TimeDelta vsync_period) override; 119 base::TimeDelta vsync_period) override;
121 void SetNeedsAnimate() override; 120 void SetNeedsAnimate() override;
122 void SetVisible(bool visible); 121 void SetVisible(bool visible);
123 void CreateOutputSurface(); 122 void CreateOutputSurface();
124 void CreateLayerTreeHost(); 123 void CreateLayerTreeHost();
125 124
126 void OnGpuChannelEstablished(); 125 void OnGpuChannelEstablished();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 gpu::Capabilities gpu_capabilities_; 169 gpu::Capabilities gpu_capabilities_;
171 bool needs_begin_frames_; 170 bool needs_begin_frames_;
172 base::WeakPtrFactory<CompositorImpl> weak_factory_; 171 base::WeakPtrFactory<CompositorImpl> weak_factory_;
173 172
174 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 173 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
175 }; 174 };
176 175
177 } // namespace content 176 } // namespace content
178 177
179 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 178 #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