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

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 c3b8c115e7c1cea69596d589350f32926dc5eb32..495d45858e91f3c5de2fa38321ea5f4e08cc4d1a 100644
--- a/content/test/web_layer_tree_view_impl_for_testing.cc
+++ b/content/test/web_layer_tree_view_impl_for_testing.cc
@@ -157,14 +157,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,
« no previous file with comments | « content/test/web_layer_tree_view_impl_for_testing.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698