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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 2872353005: Don't use fallback frame sinks on Android (Closed)
Patch Set: Disable fallback tests on android Created 3 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 void DidCompletePageScaleAnimation() override; 204 void DidCompletePageScaleAnimation() override;
205 bool IsForSubframe() override; 205 bool IsForSubframe() override;
206 206
207 // cc::LayerTreeHostSingleThreadClient implementation. 207 // cc::LayerTreeHostSingleThreadClient implementation.
208 void RequestScheduleAnimation() override; 208 void RequestScheduleAnimation() override;
209 void DidSubmitCompositorFrame() override; 209 void DidSubmitCompositorFrame() override;
210 void DidLoseCompositorFrameSink() override; 210 void DidLoseCompositorFrameSink() override;
211 211
212 enum { 212 enum {
213 COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK = 4, 213 COMPOSITOR_FRAME_SINK_RETRIES_BEFORE_FALLBACK = 4,
214 #ifdef OS_ANDROID
215 // On Android, we don't use fallback frame sinks. (crbug.com/721102)
enne (OOO) 2017/05/12 16:46:59 This is a little subtle, and I think folks looking
Saman Sami 2017/05/12 17:12:45 Done.
216 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 4,
217 #else
214 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 5, 218 MAX_COMPOSITOR_FRAME_SINK_RETRIES = 5,
219 #endif
215 }; 220 };
216 221
217 protected: 222 protected:
218 friend class RenderViewImplScaleFactorTest; 223 friend class RenderViewImplScaleFactorTest;
219 224
220 RenderWidgetCompositor(RenderWidgetCompositorDelegate* delegate, 225 RenderWidgetCompositor(RenderWidgetCompositorDelegate* delegate,
221 CompositorDependencies* compositor_deps); 226 CompositorDependencies* compositor_deps);
222 227
223 cc::LayerTreeHost* layer_tree_host() { return layer_tree_host_.get(); } 228 cc::LayerTreeHost* layer_tree_host() { return layer_tree_host_.get(); }
224 229
(...skipping 19 matching lines...) Expand all
244 cc::FrameSinkId frame_sink_id_; 249 cc::FrameSinkId frame_sink_id_;
245 250
246 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 251 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
247 252
248 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor); 253 DISALLOW_COPY_AND_ASSIGN(RenderWidgetCompositor);
249 }; 254 };
250 255
251 } // namespace content 256 } // namespace content
252 257
253 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 258 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698