Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |