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

Unified Diff: cc/test/fake_layer_tree_host_client.cc

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host_client.cc
diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
index 17ed10c0af5b9f81d906760fc5313b253cfac987..a4a5d7ea7086783cc6c84d4a06d62e8cebbea753 100644
--- a/cc/test/fake_layer_tree_host_client.cc
+++ b/cc/test/fake_layer_tree_host_client.cc
@@ -21,7 +21,7 @@ FakeLayerTreeHostClient::FakeLayerTreeHostClient(RendererOptions options)
FakeLayerTreeHostClient::~FakeLayerTreeHostClient() {}
-void FakeLayerTreeHostClient::RequestNewOutputSurface(bool fallback) {
+void FakeLayerTreeHostClient::RequestNewOutputSurface() {
DCHECK(host_);
scoped_ptr<OutputSurface> surface;
if (use_software_rendering_) {
@@ -40,4 +40,8 @@ void FakeLayerTreeHostClient::RequestNewOutputSurface(bool fallback) {
host_->SetOutputSurface(surface.Pass());
}
+void FakeLayerTreeHostClient::DidFailToInitializeOutputSurface() {
+ RequestNewOutputSurface();
+}
+
} // namespace cc
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_picture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698