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

Unified Diff: content/test/web_layer_tree_view_impl_for_testing.cc

Issue 738983002: Move output surface fallback from cc to embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: content/test/web_layer_tree_view_impl_for_testing.cc
diff --git a/content/test/web_layer_tree_view_impl_for_testing.cc b/content/test/web_layer_tree_view_impl_for_testing.cc
index 17c05853c8dacd9ce1e5515fe6e75f2458593628..2a3fcf9a57e24de7201dd41116417d851762211c 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.cc
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc
@@ -155,14 +155,17 @@ void WebLayerTreeViewImplForTesting::ApplyViewportDeltas(
float page_scale,
float top_controls_delta) {}
-void WebLayerTreeViewImplForTesting::RequestNewOutputSurface(
- bool fallback) {
+void WebLayerTreeViewImplForTesting::RequestNewOutputSurface() {
bool flipped_output_surface = false;
layer_tree_host_->SetOutputSurface(
make_scoped_ptr(new cc::PixelTestOutputSurface(
cc::TestContextProvider::Create(), flipped_output_surface)));
}
+void WebLayerTreeViewImplForTesting::DidFailToInitializeOutputSurface() {
+ RequestNewOutputSurface();
+}
+
void WebLayerTreeViewImplForTesting::registerViewportLayers(
const blink::WebLayer* overscrollElasticityLayer,
const blink::WebLayer* pageScaleLayer,

Powered by Google App Engine
This is Rietveld 408576698